~/talk

Abseil's Open Source Hashtables: 2 Years In

Talkat CppCon 2019 · 2019-09-15..09-20· [open-source, c-and-cpp]
links:none on file
slides:none on file

Abseil’s flat hash tables use 16-wide SSE probes with an h1/h2 split to avoid EQ calls, yielding about 5–10% faster finds but 10–20% slower hot inserts in microbenchmarks; a floating-window layout adds four h1 bits and gives ~0.5% overall web-search win but breaks assumptions in some code. Small-table layout cuts metadata so int sets drop from ~92 to ~24 bytes and SSO strings save ~10x. Global sampling (pprof + atomic sample handles, geometric sampling) finds stuck-bit hashes and reduces flagged bad tables from ~15k to ~2k.

AI-written summary · about

  1. 0:00Introduction and background
  2. 1:54Flat hash set terminology
  3. 3:18Swiss table core mechanics
  4. 8:30Rollout across Google
  5. 12:02Hyrum’s Law and hash tables
  6. 14:10Deterministic hash tables impact
  7. 17:40Floating group probing optimization
  8. 26:50Small table memory optimization
  9. 31:13CPU profiling and sampling
  10. 41:23Memory and system call concerns
  11. 43:55Fixing poor hash functions
  12. 47:08Global analysis and debugging
  13. 47:58Q&A session
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 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
?
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.