-
Notifications
You must be signed in to change notification settings - Fork 527
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Optimize varint encoding #767
base: master
Are you sure you want to change the base?
Conversation
I am not seeing the same improvements on my laptop
|
Could you explain more what system you ran those benchmarks on? |
Apologies for the late response. I ran this on an Intel i5-10300H on Ubuntu 22.04 through WSL. I don't remember what rustc version I ran the original benchmarks on, but I ran it again just now on rustc 1.71.1 and got similar results. What compiler version and CPU did you use to run those benchmarks?
|
The current master branch now uses |
This optimizes varint encoding by turning the loop into a for loop which causes the compiler to see that it can unroll the loop.
Bench: