~/talk

Introduction to Hardware Efficiency in Cpp

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

Code is either CPU‑bound or memory‑bound and the talk shows concrete fixes and measurements: use profilers VTune uProf perf to classify bottlenecks, convert array‑of‑structs to struct‑of‑arrays — 194ms → 42ms (≈4×), interchange matrix loops — 5.8s → 1.22s (≈4.7×), and enable compiler vectorization which typically yields 2–6× speedups. Replacing vector<ptr> with contiguous values and using custom allocators or node packing makes traversal 10–20× faster in examples. Compiler optimization reports and specific flags reveal why changes work.

AI-written summary · about

  1. 0:00Intro
  2. 1:22Making software fast
  3. 3:05Better Usage of Hardware Resources
  4. 7:05Computationally intensive or memory intensive?
  5. 11:33Fixing memory intensive codes - SOA
  6. 14:28Fixing memory intensive codes (3)
  7. 18:24Introduction to vectorization
  8. 22:41Prerequisites for autovectorization
  9. 28:18Fixes for vectorization problems
  10. 34:59When do data cache misses typically happen?
  11. 40:18Example: Minimum and maximum in array
  12. 45:31Why is perfect memory layout the fastest?
  13. 50:25Experiment with class size and member layout
~/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.