Bob Jenkins' Web SiteSpookyHash is production. It's a 128-bit hash that hashes about 3 bytes per cycled (on 64-bit platforms). It's reasonably fast for short keys too. I just corrected some typedefs to make it a little more portable. Google's CityHash has a similar spec (also 128-bit results). On machines with a crc32-instruction, they say it is 6 bytes per cycle. I've never seen anything that fast. (It's not that fast on my machine, which doesn't have a crc32 instruction.) It passes my frog test for at least 70 bits. |
![]() |
Table of Contents (internal links):