Static Search Trees: Achieving 40x Speed Over Binary Search
Static search trees: 40x faster than binary search (2024)
I optimized a static search tree to achieve massive throughput gains for sorted data queries. By leveraging Eytzinger layouts, SIMD instructions, and aggressive prefetching, I pushed performance far beyond standard binary search. This work aims to accelerate bioinformatics tasks like DNA indexing, demonstrating how low-level CPU optimizations can yield dramatic real-world speedups.
"At 1GB input, binary search needs around 1150ns per query, while the optimized Eytzinger layout is 6x faster at 200ns per query."