~/talk

CPU design effects

Talkat Meeting C++ 2019 · 2019-11-14..11-16· [rust]
slides:none on file

Examples identify concrete costs and fixes: a filter loop runs >2× faster on sorted data because branch mispredictions drop (about 100M vs 400k branch-misses measured with perf; VTune shows bad speculation), GCC sometimes replaces branches with conditional moves, Google Benchmark measures it. Pointer-spacing causes a 10× slowdown at 4096 bytes due to L1 cache associativity and millions of replacements, and certain float inputs trigger ~4× slowdowns via ~5M FP assists unless flush-to-zero / ffast-math is used.

AI-written summary · about

  1. 0:00Start
  2. 3:51Hardware Effects
  3. 4:35Progress of Cpu Design
  4. 8:12Disclaimer
  5. 8:45Google Benchmark
  6. 12:17Why Is It Faster To Process a Sorted Array than an Unsorted Array
  7. 12:52Intel Amplifier
  8. 14:23Branch Predictor Unit
  9. 15:04Conditional Jump
  10. 19:00Branch Misses
  11. 20:00Profile Guided Optimization
  12. 22:26Compiler Explorer
  13. 29:49L1 Cache
  14. 33:39Index Bits
  15. 43:48Normal Floating Point Numbers
  16. 49:22Cpu Flags
~/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.