ChibiHash-0.2.0.0: a simple and fast 64-bit hash function
Safe HaskellSafe-Inferred
LanguageHaskell2010

ChibiHash.V2

Description

V2 implementation of ChibiHash

This is a 64-bit non-cryptographic hash function optimized for: - Fast performance on short strings - Good distribution of hash values - Simple implementation with no lookup tables

Version 2 improvements over V1, from the original C implementation:

  • Faster performance on short strings (42 cycleshash vs 34 cycleshash)
  • Improved seeding that affects all 256 bits of internal state
  • Better mixing in bulk data processing
  • Passes all 252 tests in smhasher3 (commit 34093a3), v1 failed 3.
Synopsis

Documentation

chibihash64 :: ByteString -> Word64 -> Word64 Source #

Main hash function for V2 Takes a ByteString input and 64-bit seed value Returns a 64-bit hash value