Strongly Universal String Hashing is Fast

被引:11
|
作者
Lemire, Daniel [1 ]
Kaser, Owen [2 ]
机构
[1] Univ Quebec, TELUQ, LICEF Res Ctr, Montreal, PQ H3C 3P8, Canada
[2] Univ New Brunswick, Dept CSAS, St John, NB E2L 4L5, Canada
来源
COMPUTER JOURNAL | 2014年 / 57卷 / 11期
基金
加拿大自然科学与工程研究理事会;
关键词
string hashing; Barrett reduction; Carry-less Multiplications; Binary finite fields; non-cryptographic hash functions; NUMBER;
D O I
10.1093/comjnl/bxt070
中图分类号
TP3 [计算技术、计算机技术];
学科分类号
0812 ;
摘要
We present fast strongly universal string hashing families: they can process data at a rate of 0.2 CPU cycle per byte. Maybe surprisingly, we find that these families-though they require a large buffer of random numbers-are often faster than popular hash functions with weaker theoretical guarantees. Moreover, conventional wisdom is that hash functions with fewer multiplications are faster. Yet we find that they may fail to be faster due to operation pipelining. We present experimental results on several processors including low-power processors. Our tests include hash functions designed for processors with the carry-less multiplication instruction set. We also prove, using accessible proofs, the strong universality of our families.
引用
收藏
页码:1624 / 1638
页数:15
相关论文
共 50 条