BBHash
BBHash copied to clipboard
Faster popcount
Looking at your popcount code in
https://github.com/rizkg/BBHash/blob/6bb97c4218198d3e5dd60c7eadb5267a79959a6d/BooPHF.h#L170-L189
it's perhaps worthwhile noting that you could speed-up your popcounts by using the GCC __builtin_pocount()
and __builtin_popcountl()
intrinsics when available, instead. Which would be compiled into a single POPCNT instruction on some CPUs - e.g. on not too old Intel ones.
nice idea..!