~/talk

Refresher on Containers, Algorithms and Performance in C++

Talkat CppCon 2022 · 2022-09-11..09-16· [web-performance]
links:none on file
slides:none on file

Standard containers behave very differently in real workloads: continuous storage gives cache-friendly random access while node-based containers pay allocation and pointer-chasing costs; worst-case vector insert front is O(n^2) but reserve + push_back + reverse collapses that into linear work; parallel execution policy can slow things down once orchestration and memory bottlenecks kick in; measurements use GCC 10.3 and the Google Benchmark Library with cache emulation from The Foundry, and boost flat containers and hash-based alternatives often win in practice.

AI-written summary · about

  1. 0:00Introduction to performance
  2. 1:05Data structures and complexity
  3. 6:29Vector vs list benchmarking
  4. 10:07Memory access and cache usage
  5. 13:26Insertion performance analysis
  6. 18:14Optimizing vector usage
  7. 23:31Sorted container strategies
  8. 26:36Set insertion benchmarks
  9. 33:26Flat set alternatives
  10. 37:36Efficient deletion strategies
  11. 41:17Unordered container analysis
  12. 45:53Case study: optimization
  13. 51:45Flattening and mapping
  14. 59:17Final summary and tips
~/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.