Hi Aras, I am working on a system that uses std::hash C++ (based on murmur?). I am experimenting to use different hash functions, and tried cityhash64 and xxhash64, also std::hash for integer keys and cityhash64 for string. However, cityhash is best for overall CPU. Any suggestions? Thx! Jing

Depends on what you want & what your needs are, how long are the typical keys, what platform you're on etc. In some tests that I did (http://aras-p.info/blog/2016/08/09/More-Hash-Function-Tests/), CityHash64 was looking very good indeed. If it works for you, great, use it!

View more

Ask @aras_pr:

About Aras Pranckevičius:

Graphics programmer and code plumber at Unity

Kaunas, Lithuania

#graphics #programming