~/talk

40x Faster Binary Search

Talkat P99 CONF 2025 · 2025-10-22..10-23· [compilers-and-language-design]
links:none on file
slides:none on file

Claims that binary search is only a small constant slower than random access but in practice slows hugely because cache misses dominate, then demonstrates concrete fixes: replace naive layout with Eytzinger layout, pack nodes into cache-line blocks (16 32-bit ints), use AVX2 SIMD (portable SIMD popcount trick), remove branches, optimize pointer arithmetic, add batching 16 and staggered batches + prefetch. Implementation beats the Rust standard library by 40x faster, drops ~1µs to ~27ns per query on large arrays; the optimized version reliably works and increases throughput.

AI-written summary · about

  1. 0:00Introduction and motivation
  2. 0:34Binary search fundamentals
  3. 4:26Layout and cache optimization
  4. 11:02Assembly-level optimization
  5. 11:22Vectorization techniques
  6. 12:14Manual SIMD refinement
  7. 15:16Throughput vs latency
  8. 15:29Advanced throughput strategies
  9. 22:35Conclusion and resources
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.