You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looking at the locals variables from your screen capture here is my guess on what happen:
i2 == 110
i2 / 10 == 11
i2 / 10 == b';' as u8 & 0x0F
i2 / 10 == line[line.len() - 3]
line.len() == 5
line[2] = b';'
line[4] = b'6' (because f=6)
So my guess is the input file you provide contains line with following format:
??;?6
As you can see, the parser I wrote rely a lot on unsafe code to strip out all check from the final x86 assembly.
Lines produced by the 1brc measures generator must respect the following regexp format:
\w+;-?\d{1,2}\.\d
Did you use the ./create_measurements.sh script provided in the official repository ? Or did you use another script to generate the input file ?
Here's what the debugger says:
The text was updated successfully, but these errors were encountered: