~/talk

Interfaces Matter

Talkat CppCon 2018 · 2018-09-23..09-28· [software-architecture, web-performance]
links:none on file
slides:none on file

Chronicles how C++ containers keep getting tugged between performance hacks and safe interfaces: shows why copy‑on‑write breaks in practice, why RVO/copy elision is fragile, and how noexcept for move lets implementations steal buffers instead of copying. Surveys allocator tricks and stack buffer hacks, explains the tradeoffs behind the small string optimization (≈4–22 bytes depending on build) and why ropes lose to threads, and demonstrates concrete alternatives like string_view/span and ranges for zero‑overhead borrowing.

AI-written summary · about

  1. 0:00Introduction and speaker background
  2. 2:30Heap allocation in standard containers
  3. 5:49Copy on Write and its problems
  4. 7:57Compiler optimizations and RVO
  5. 10:31Expanded memory and custom allocators
  6. 14:33Move semantics and noexcept
  7. 18:25Thread safety vs rope strings
  8. 21:41Small string optimization
  9. 24:39Escaping standard container tyranny
  10. 25:43String view for safer interfaces
  11. 27:52Lifetime management with string view
  12. 28:55C-style functions with string view
  13. 31:24Span and ranges for complex data
  14. 32:49Future of container interfaces
  15. 34:01Conclusion and future vision
~/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.