Faster 64-bit universal hashing using carry-less multiplications

Daniel Lemire, Owen Kaser
3/11/2015
29 citations
cs.DScs.PF

Official code: lemire/StronglyUniversalStringHashing (137 stars, last commit 2025-01-23).

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).

Show full abstract

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.

View on arXivView PDF

Code Implementations(1)

Benchmark showing the we can randomly hash strings very quickly with good universality

13712May 13, 20131 years agoNOASSERTION
hashinguniversality

Similar Papers

Cite this paper

@article{lemire2015faster,
  title  = {Faster 64-bit universal hashing using carry-less multiplications},
  author = {Daniel Lemire and Owen Kaser},
  year   = {2015},
  eprint = {1503.03465},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/1503.03465}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/1503.03465.svg)](https://codeofpaper.com/paper/1503.03465)

Discussion