Meep Hashing: Ultrafast and Compact Minimal Perfect Hashing for Practical Large-Scale Lookup Systems
Shouqian Shi, Diancheng Luo, Jacques Liao, Yi Liu, Xingsheng Zhao, Matthew Fahrbach, Chen Qian
Abstract
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.
Ask about this paper
Ask your agent about it.
Lune has read the top-tier papers around this one, so every answer names the papers it rests on.
Your agent calls
Lunesearch_papers
Free to start. No credit card required.
Terminal
Install the CLIlune papers get f0cdd357-f2db-425a-a367-92d33d93a5ebRelated papers
- PTHash: Revisiting FCH Minimal Perfect HashingGiulio Ermanno Pibiri, Roberto TraniSIGIR 2021 · 34 citations
- MapEmbed: Perfect Hashing with High Load Factor and Fast UpdateYuhan Wu, Zirui Liu, Xiang Yu, Jie Gui et al.KDD 2021 · 14 citations
- Constructing Minimal Perfect Hash Functions Using SAT TechnologySean A. Weaver, Marijn HeuleAAAI 2020 · 6 citations
- GPH: An Efficient and Effective Perfect Hashing Scheme for GPU ArchitecturesJiaping Cao, Le Xu, Man Lung Yiu, Jianbin Qin et al.SIGMOD 2025 · 4 citations
- Extendible RDMA-Based Remote Memory KV Store with Dynamic Perfect Hashing IndexZirui Liu, Xian Niu, Wei Zhou, Yisen Hong et al.ICDE 2025 · 1 citation
