Faster parsing#9
Conversation
|
Oh, that's an interesting idea. Is it actually faster, and if so, by how much? |
|
Yes, faster here by 20-30% on 8 cores (very erratic so it's hard to say exactly!): |
|
Out of curiosity, I also tried a very sparse temperature lookup based on the last 4 bytes of the temperature string. This makes little difference (I was surprised), but it might be worth a try on a more powerful (more RAM) PC ... and |
Search only for semicolons. Use temperature parsing to determine where newlines are.
|
I'm curious how it does against what we have on |
|
I rebased, so perhaps give it a try. EDIT: Maybe 10% - but seems to be slower now, in combination with the new main: |
|
So on a better laptop, I'm seeing just shy of 10% improvement (1.2 seconds vs 1.3 seconds). Significantly though, this is now the fastest 1brc solution I have run (can we ignore the shell script wrapper?). This makes me breathe a huge sigh of relief 😅 |
Search only for semicolons.
Use temperature parsing to determine where newlines are.