~/talk

C++ Algorithmic Complexity, Data Locality, Parallelism, Compiler Optimizations, & Some Concurrency

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

Concrete claims, measurements, and fixes: traversing a 4096×4096 double matrix rowwise takes row: 21 ms vs column: 912 ms, measured with valgrind; L1=32 KB L2=256 KB L3=8 MB and cache line 64 B explain it; D1 miss rates fall from 12.5% to 2.1% when access is cache-friendly. Blocking (32×32) or copying a submatrix removes conflict misses, false sharing creates ping‑pong between threads, and practical advice is: prefer contiguous containers (vector/flat_map), eliminate pointer/virtual chasing on hot paths, use PGO and benchmark.

AI-written summary · about

  1. 0:00Intro
  2. 0:30Hardware
  3. 3:00Caches
  4. 3:53My Machine
  5. 4:50Cores
  6. 5:18Latency
  7. 6:13Cache Models
  8. 8:23Cache Lines
  9. 12:59Cache Misses
  10. 15:20Cache Miss Example
  11. 21:05False Sharing
  12. 24:50Cache Line Example
  13. 26:37Main Cache
  14. 27:18Memory
  15. 28:01Summary
  16. 28:54ObjectOriented Example
  17. 36:21Cash oblivious
  18. 37:36Guidelines for code
  19. 39:28Benchmarking
~/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.