ktprime / emhash

Fast and memory efficient c++ flat hash map/set
MIT License
435 stars 30 forks source link

hash_table6.hpp uses own hash-function for Integral types even if assigned different one (EMHASH_FIBONACCI_HASH = 1) #3

Closed hordi closed 4 years ago

hordi commented 4 years ago

Actually, it is impossible to assign any custom hash-function if EMHASH_FIBONACCI_HASH is defined. Can't say does it good or no, but a bit unexpected...

ktprime commented 4 years ago

most time fibonacci hash is a very fast and efficient hash function and it's used in many other hash map.

another marco EMHASH_SAFE_HASH is also a safe guard if the input hash is highly collisioned. but default all marco is not defined.