Badoo Aug 7, 2017

Map Performance Comparison and Judy Data Structure Alternatives

Article Summary

Marko Kevac from Bumble's Platform team benchmarked 6 associative array implementations to replace their aging Judy data structure. The winner? Not what you'd expect when memory matters.

Bumble's C/C++ services handle hundreds of thousands of requests per second with hundreds of gigabytes in memory. Their team tested hash tables and trees from Google, C++ STL, and others against their longtime Judy implementation, measuring both speed and memory overhead with 10 million random lookups.

Key Takeaways

Critical Insight

spp emerged as the top Judy replacement, balancing performance with reasonable memory overhead for high-throughput services.

The team discovered why the standard hash function beat specialized alternatives, and it reveals something surprising about how modern implementations optimize for common use cases.

Recent from Badoo

Related Articles