Meep Hashing: Ultrafast and Compact Minimal Perfect Hashing for Practical Large-Scale Lookup Systems
Minimal perfect hashing (MPH) is a class of algorithms that maps a set of N keys to the range {0, 1, …, N -1} without collisions. MPH is widely employed in modern large-scale applications including distributed storage indexes, network packet classification, genomic encoding in Bioinformatics, etc. In practice, these systems are often augmented with alien-key filters to ensure robustness against unexpected inputs. This paper introduces Meep hashing, a novel minimal perfect hashing algorithm designed for ultrafast lookup with an integrated alien-key filtering mechanism. Among existing lookup systems, Meep achieves the lowest on-average and tail lookup latency while maintaining a memory footprint comparable to the most compact perfect hashing data structures. It supports configurable target false positive rates for alien-key filtering, enabling flexible trade-offs between accuracy and efficiency. The performance advantages of Meep are realized through a hybrid orchestration of Cuckoo-based and probing-based hashing techniques, combined with a collision resolution strategy that handles four distinct collision types with minimal or zero additional overhead. We implement Meep and evaluate its efficacy in lookup speed, memory footprint, and construction time using microbenchmarks. Experimental results show that Meep hashing is consistently 50% to 200% faster than the other MPHs and 100% faster than the other MHTs. Meep achieves more than 7 billion queries per second under Zipfian query key distribution on a single machine with 20 parallel lookup threads.
Authors
- Xingsheng Zhao (ORCID: https://orcid.org/0009-0002-6011-3341)
- Matthew Fahrbach (ORCID: https://orcid.org/0000-0002-3142-7133)
- 罗典成
- Shouqian Shi (ORCID: https://orcid.org/0000-0001-6039-6682)
- Jacques Liao (ORCID: https://orcid.org/0009-0000-4745-1931)
- Chen Qian (ORCID: https://orcid.org/0000-0002-6882-9590)
- Yi Liu (ORCID: https://orcid.org/0000-0002-8839-9508)
Institutions
- Google (United States) (US)
- University of California, Santa Cruz (US)
- Nanjing University (CN)
Publication Details
- Journal
- Proceedings of the ACM on Management of Data
- Published
- 2026-05-18
- DOI
- https://doi.org/10.1145/3802087
- Primary Topic
- Network Packet Processing and Optimization
- Type
- article
- Field-Weighted Citation Impact
- 0.00