Need a new way to read multiple integers from serial port line

Hi,
I recently found a way to read multiple integers from the serial port line but it is too slow.
I want the new code to be really fast meaning I don’t want to read strings. if you guys could help me I would very much appreciate it.
below is the code that semi-works but it gives me extra zeros underneath the codes that I actually wanted to print. if you guys could explain that too I would appreciate it as well.

char com;
char dummy;
long value1;
long value2;
long value3;
long value4;
long value5;
long value6;
int i=0;

void setup() {
Serial.begin(9600);
while (i<2)
{
  if (Serial.available() > 0) //if something comes
  {
    //com = Serial.readBytesUntil('\n'); // this will read the command character
    //dummy = com;
    //if (com > 0)
    //{
    value1 = Serial.parseFloat();
    value2 = Serial.parseFloat();
    value3 = Serial.parseFloat();
    value4 = Serial.parseFloat();
    value5 = Serial.parseFloat();
    value6 = Serial.parseFloat();    
    Serial.println(com);
    Serial.println(value1); //this creates a flag
    Serial.println(value2); //this creates a flag
    Serial.println(value3); //this creates a flag
    Serial.println(value4); //this creates a flag
    Serial.println(value5); //this creates a flag
    Serial.println(value6); //this creates a flag 
    i +=1;
    //}
  }
}

}

void loop() {

}

so if I put x36c899d900z550y770a230
i would get in the pring
36
899
900
550
770
230

0
0
0
0
0
0

I don’t understand why i get those zeros.

An integer can be sent with just 2 bytes. Why make it so complex?

The 2nd time through the while() the serial buffer still contains the line ending character (either a newline or a carriage return + newline), so Serial.available() is greater than zero, but there are no numbers left in the input so the parseFloat() times out and returns zero.
Why are you using parseFloat() for a whole number that will be stored as an integer?

I would suggest to study Serial Input Basics to handle this
(And working at baud rate faster than 9600 will help too)

socialmedia:
Hi,
I recently found a way to read multiple integers from the serial port line but it is too slow.
I want the new code to be really fast meaning I don't want to read strings. if you guys could help me I would very much appreciate it.
below is the code that semi-works but it gives me extra zeros underneath the codes that I actually wanted to print. if you guys could explain that too I would appreciate it as well.

To increase the reading speed, you can send data in binary, not text