~/talk

Zero-Cost Abstractions in C++ - High Performance Message Dispatch

Talkat C++Now 2024 · 2024-04-29..05-03· [software-architecture]
slides:none on file

Library turns declarative message definitions and Boolean predicates into sum-of-products tables at compile time, then builds indexed lookup structures using a near‑perfect hash and a multiply‑based pseudo pext bit extractor so runtime dispatch avoids virtual calls. Benchmarks show ~2 ns lookups for ~100 keys, ~20 ns for larger maps on x86, and prior embedded runs hit ~145 ns across 1,550 callbacks. Implementation lives in the open source CIB Library and the approach works in practice.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 1:50Power management firmware overview
  3. 8:08CIB library and compile-time initialization
  4. 15:54Message dispatch case study introduction
  5. 24:22Message callback design and improvements
  6. 31:57Message definitions and matchers
  7. 40:00Boolean expression simplification
  8. 53:20Lookup algorithm design and optimization
  9. 1:00:03Parallel bit extract and hash functions
  10. 1:13:31Benchmarking and performance results
  11. 1:20:16Q&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.