~/talk

Unlocking Modern CPU Power - Next-Gen C++ Optimization Techniques

Talkat C++Now 2024 · 2024-04-29..05-03· [software-architecture]
slides:none on file

Covers how CPUs in the last ~10 years move to multi‑die tiles (e.g., 15 cores per tile), ~40B transistors, bigger caches and longer pipelines that make old tweaks hurt or help differently. Random access can be catastrophically slow—38× slower list iteration vs vector—and branch mispredictions cost ~4–7×. NUMA makes remote memory ~50% lower remote bandwidth and UPI about 160 ns latency; page migrations cause TLB shootdowns that dominate kernel time. A per‑node counter redesign raises a threadpool from 2M to 42M tasks/sec.

AI-written summary · about

  1. 0:00Evolution and complexity
  2. 5:48Avoiding common pitfalls
  3. 8:46Superscalar execution
  4. 17:01Prefetching and caching
  5. 23:27Pipelines and branching
  6. 30:59Branchless optimization
  7. 38:46Concurrency and bottlenecks
  8. 45:44Understanding NUMA
  9. 55:15Data sharing challenges
  10. 58:45NUMA optimization techniques
  11. 1:05:40Advanced contention handling
  12. 1:11:17Thread pool optimization
  13. 1:19:38NUMA migration issues
  14. 1:25:22TLB and OS impacts
  15. 1:33:26IO and CPU throttling
  16. 1:36:42Conclusion and profiling
~/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.