-
Notifications
You must be signed in to change notification settings - Fork 578
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
CPU pipline parallel reverse bits algorithm #195
base: unstable
Are you sure you want to change the base?
Conversation
Same as the other perf fix. Can you provide a scenario to repro the perf improvement? We of course love perf improvements! |
I have no perf data on this. But this is old stuff, using bitwise ops and utilizing pipelining instead of a loop. |
Can you update the comment at the top. If there’s a resource you used to get that algorithm ideally put that link there. Otherwise just delete it. Once that’s in I should be ready to merge. |
By the way if you want to work together on more changes let’s collaborate on https://community.keydb.dev/ |
@JohnSully great, meanwhile am getting acquainted with the code, and these are just low hanging fruits that quickly identify base on my previous experience. |
This one is still delayed on the comment fix. |
Hi @JohnSully what comment you need me to fix? |
Hi @tryfinally The comment highlighted in blue. Since you have changed it perhaps you have not pushed to the source branch? I'm preparing a new release which includes your earlier changes however this one will have to wait to the next release. |
done |
Is this line removed by accident? |
@miroslavp yes it is by mistake. thanks! |
Clang offers a __builtin_bitreverse intrinsic, which on architectures like ARM directly calls the native |
algorithm is explained in the book Hackers Delight
You can see it also here Bit Twiddling Hacks at graphics.stanford.edu