~/talk

The Holy Grail - A Hash Array Mapped Trie for C++

Talkat NDC TechTown 2017 · 2017-10-17..10-20· [c-and-cpp, software-architecture]
slides:none on file

A C++ reference implementation of a Hash Array Mapped Trie is proposed for Boost/standard, using Hash Array Mapped Trie layout with 32-way branching (peeling 5 bits per level) giving max depth ~6–7 and average depth ≈5 for large sets; benchmarks use clang/libc++ and microbenchmarks on 100k+ items. Lookup performance approaches or sometimes beats unordered_set for well‑distributed hashes (base64 strings), but persistent insert costs are high (≈4–5× slower than std::set, ≈20× vs unordered_set on monotonic ints). Implementation uses a bitmap + compact array and a popcount intrinsic, and offers an atomic shared_hash_tree for lock‑free update/commit.

AI-written summary · about

  1. 0:00Introduction to HAMTs
  2. 3:27C++ associative containers
  3. 7:07Persistent data structures
  4. 10:06Persistent binary trees
  5. 13:36Designing the hash tree
  6. 18:11Array mapping implementation
  7. 21:18Performance benchmarks
  8. 29:30Code and concurrency
  9. 33:34Conclusion and resources
~/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.