~/talk

Moving Faster: Everyday efficiency in modern C++

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

Argues that performance almost always matters and gives concrete fixes: count heap allocations, treat cache misses as the new floating point divides, prefer stack or embedded storage and short‑string optimizations to reduce allocations, and use C++17 features like node extraction and merge to move elements between associative containers without reallocating. Shows microbenchmarks (vector vs deque vs list for inner sizes 10, 100, 1000) and examples where rewriting a 3‑week job to 5 hours or shrinking 2,700 tests from 70 minutes to ~20 seconds is possible by using emplace to construct in place, correct passing conventions, and fewer allocations.

AI-written summary · about

  1. 0:00Intro
  2. 0:50A 30 Year Tale
  3. 3:03When does efficiency matter?
  4. 6:28Writing optimal code
  5. 8:55Dynamic allocation
  6. 9:55Static allocation
  7. 10:44Embedded objects
  8. 12:49Sharing space
  9. 14:29Pass by value
  10. 15:31Pass by const reference
  11. 16:44Pass by non-const reference
  12. 17:28Passing vector by value
  13. 20:02Passing vector by r-value reference
  14. 22:05Passing vector by non-const reference
  15. 22:48Return rules
  16. 26:06Moving a string
  17. 29:15Not moving
  18. 30:21Constructing in place
  19. 32:16Splicing
  20. 32:41Node Extraction
  21. 33:48Changing an Element key
  22. 35:37Merging Sets
  23. 38:12Add - A Case Study
  24. 42:04Container Choice
  25. 45:03Vector vs. Array vs. C-array
  26. 47:26List vs. Deque vs. Vector
  27. 49:28Set/Map vs. Vector
  28. 50:30Set vs. Vector
~/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.