speed up the arduino

I write a code in Arduino that controlling a stepper motor useing accelstepper when resive a serial signal from visual basic that Contains acoordinate value the ardino will controlling the stepper motor by this value .the code is work very good but it run after 1 second after resive the value over the serial I want to run the code faster . her is the code

#include <AccelStepper.h>
#include <MultiStepper.h>

#include <AccelStepper.h>
#include <MultiStepper.h>

#include <AccelStepper.h>

// Define a stepper and the pins it will use
AccelStepper stepper(1, 9, 8);

int pos = 0;
void setup()
{ 
  
    Serial.begin(115200); 
  stepper.setMaxSpeed(90);
  stepper.setAcceleration(90);
 
           
           
}

void loop()
{
   if (Serial.available()){
   int steps = Serial.parseInt();
   stepper.moveTo(steps);
   
 if (stepper.distanceToGo() == 0)        
         {
        
         
        stepper.moveTo(stepper.currentPosition());
           
    stepper.setSpeed(100);
         }
   }
  stepper.run();
}

What does the VB application actually send ?
Note this from the parseInt() reference page

Parsing stops when no characters have been read for a configurable time-out value, or a non-digit is read;

the VB application send coordinate value (cnc)

muhndkalel:
the VB application send coordinate value (cnc)

Yes, but does it send a terminating character such as CR of LF ?

Read and understand the quote from the reference page that I posted. If there is no terminating character the Arduino will wait until the function times out, which defaults to 1 second. You can change the timeout using the Serial.setTimeout() function.

thank you for help I will read the reference

Have a look at the examples in Serial Input Basics - simple reliable non-blocking ways to receive data. There is also a parse example.

Also you don't need all this at the top of your program

#include <AccelStepper.h>
#include <MultiStepper.h>

#include <AccelStepper.h>
#include <MultiStepper.h>

#include <AccelStepper.h>

You only need the last line.

...R