~/talk

Want fast C++? Know your hardware!

Talkat Meeting C++ 2016 · 2016-11-18..11-19· [rust]
links:none on file
slides:none on file

Benchmarks use Google Benchmark on clang GCC and Visual Studio across two MacBooks; concrete results: row-major traversal beats column-major by ~30–35× for large arrays; MSVC shows a 6× slowdown for unsorted versus sorted ±1 data while gcc/clang do not; unaligned accesses cost ~3× on older hardware; SIMD-friendly loop reshaping yields ~3× speedup; denormal floats slow multiplication about 30×; cache lines are 64 bytes and set associativity causes catastrophic 20× drops at power‑of‑two strides.

AI-written summary · about

  1. 0:00Intro
  2. 0:19ROLI
  3. 4:56the rest of this talk
  4. 9:182d array traversal, 10 MB array
  5. 14:052d array traversal + some work
  6. 17:442D Array traversal: time profile (Xcode Instruments)
  7. 21:14temporal cache coherency
  8. 26:36accessing every Nth array element
  9. 28:45cache associativity
  10. 34:23unaligned memory access
  11. 35:53aligned vs. packed data access
  12. 42:08"harmless" branches
  13. 43:12virtual function calls
  14. 55:02loop vectorisation - clang
~/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.