martinus / robin-hood-hashing

Fast & memory efficient hashtable based on robin hood hashing for C++11/14/17/20
https://gitter.im/martinus/robin-hood-hashing
MIT License
1.5k stars 142 forks source link

overflow fix: rehash with different hash instead #121

Closed martinus closed 3 years ago

martinus commented 3 years ago

This uses a pretty nice idea to rehash with a different hash whenever the info byte would cause an overflow, and also improves hash quality when a bad hash is used.