English

Faster 64-bit universal hashing using carry-less multiplications

Data Structures and Algorithms 2016-12-20 v8 Performance

Abstract

Intel and AMD support the Carry-less Multiplication (CLMUL) instruction set in their x64 processors. We use CLMUL to implement an almost universal 64-bit hash family (CLHASH). We compare this new family with what might be the fastest almost universal family on x64 processors (VHASH). We find that CLHASH is at least 60% faster. We also compare CLHASH with a popular hash function designed for speed (Google's CityHash). We find that CLHASH is 40% faster than CityHash on inputs larger than 64 bytes and just as fast otherwise.

Cite

@article{arxiv.1503.03465,
  title  = {Faster 64-bit universal hashing using carry-less multiplications},
  author = {Daniel Lemire and Owen Kaser},
  journal= {arXiv preprint arXiv:1503.03465},
  year   = {2016}
}
R2 v1 2026-06-22T08:50:26.877Z