Google developed the algorithm in-house starting in 2010. The C++ source code for the reference implementation of the algorithm was released in 2011 under an MIT license, with credit to Geoff Pike and Jyrki Alakuijala. The authors expect the algorithm to outperform previous work by a factor of 1.05 to 2.5, depending on the CPU and mix of string lengths being hashed. CityHash is influenced by and partly based on MurmurHash.
Some particularly fast CityHash functions depend on CRC32 instructions that are present in SSE4.2. However, most CityHash functions are designed to be portable, though they will run best on little-endian 32-bit or 64-bit CPUs.
CityHash releases do not maintain backward compatibility with previous versions. Users should not use CityHash for persistent storage, or else not upgrade CityHash.
- cityhash on GitHub
- Pike, Geoff; Alakuijala, Jyrki (2011-04-11). "Introducing CityHash". Google Open Source Blog. Retrieved 2017-02-09.
- cityhash README on GitHub
- cityhash: src/city.cc on GitHub
- Pike, Geoff (2014-03-31). "Introducing FarmHash". Google Open Source Blog. Retrieved 2017-02-09.
- Cityhash: NEWS on GitHub