~/talk

Fast and Small C++ - When Efficiency Matters

Talkat CppCon 2024 · on Tuesday, 2024-09-17· at 14:00· Adams A, 6700 North Gaylord Rockies Boulevard· [web-performance]
slides:none on file

Shows how empty-base/CompressedPair tricks shrink a unique_ptr with a compile-time deleter to pointer size, demonstrates EBO + C++20 no_unique_address and C++23 static lambdas saving instructions, measures SSO tradeoffs across implementations (libstdc++ 7‑byte SSO, libc++ 15‑byte, Facebook 23‑byte) and counts bytes, uses constexpr to eliminate runtime copies and ROM→RAM init, highlights C++ Insights to inspect layouts, and explains the C++26 backing-array wording that lets compilers make initializer_list arrays static.

AI-written summary · about

  1. 0:00Introduction
  2. 2:58Unique pointer and compressed pair
  3. 14:46Small string optimization
  4. 32:03Small string buffer capacity
  5. 36:46Facebook's string and const expressions
  6. 44:10C++26 initializer lists
  7. 53:36Summary
~/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.