Skip to main content

#️⃣ Hash Functions

Trade off between speed and collision rate.

TL;DR: Just use Facebook XXHash.

AlgorithmYearDescription
CRC-641975Used in networking for error detection.
MurmurHash2008Designed as a fast, general-purpose hash function.
Google CityHash2011Designed to be faster for short keys (<64 bytes).
Facebook XXHash2012From the creator of zstd compression. SOTA
Google FarmHash2014Newer version of CityHash with better collision rates.

References