~/talk

Frozen data structures in C++14

Talkat CppCon 2018 · 2018-09-23..09-28· [c-and-cpp]
links:none on file
slides:none on file

Frozen provides header-only replacements for map/set/unordered_map/unordered_set that are truly immutable and constructed at compile time via constexpr constructors, eliminating static init cost and the initialization-order fiasco. It uses compile-time-sorted arrays and a branch-light binary search to cut lookup time on small sets, and a compile-time generator for perfect minimal hashing (bucket sorting plus per-bucket seeds) to make collision-free unordered tables; users report thousands-of-entry tables (e.g., HTML entities) compile and run with smaller binaries and faster lookups.

AI-written summary · about

  1. 0:00Introduction
  2. 3:15Const and data sections
  3. 7:51Need for frozen containers
  4. 10:04Frozen set and map design
  5. 13:22Performance benefits
  6. 18:00Perfect minimal hashing
  7. 23:44Binary search assembly
  8. 27:21Compile-time hashing algorithm
  9. 32:01Implementation details
  10. 39:41Use cases and examples
  11. 45:36Compile-time limits
  12. 47:04Algorithm trade-offs
  13. 48:36Real-world applications
  14. 51:30Q&A
~/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.