~/talk

Essential C++ Tips and Tricks for the Ultimate Cpp Performance

Talkat C++Online 2025 · 2025-02-26..02-28· [c-and-cpp, web-performance]
slides:none on file

Shows how unique_ptr with a custom deleter shrinks from two pointers to one by exploiting no_unique_address / EBO, trimming size by about 50% and even shaving instructions with C++23 static lambda call operators. Compares SSO layouts across libstdc++, MSVC, libc++ and FBString and the surprising capacities: roughly 8 vs 15 vs 23 bytes for small-buffer optimization depending on layout tricks. Demonstrates making fixed compile-time strings truly reside in ROM via initializer_list backing array becomes static in GCC14, saving RAM and runtime copies.

AI-written summary · about

  1. 0:00Introduction
  2. 2:03Unique pointer
  3. 5:33Empty base class optimization
  4. 6:55Compressed pair
  5. 11:50No unique address
  6. 15:30Small string optimization
  7. 19:29Standard library implementations
  8. 32:19Facebook string
  9. 36:48Constexpr strings
  10. 45:31Initializer lists
  11. 53:00Conclusion
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.