~/talk

How a CPU pipeline works and whether you can fool it

TalkinRussianat CodeFest 13 · 2023-05-27..05-28· [compilers-and-language-design]
links:none on file
slides:none on file

Explains how CPU pipeline, superscalar execution, caches, branch predictors, pattern recognition, and hyper-threading work and interact to speed up programs. Shows how well these mechanisms actually perform and gives concrete coding techniques to make code run more efficiently on modern processors. Demonstrates performance gains with code examples and benchmark results.

AI-written summary · about

  1. 0:00CPU pipeline basics
  2. 3:04CPU performance optimization
  3. 7:43Sum algorithm optimization
  4. 12:29Reducing instruction count
  5. 19:45Loop unrolling benefits
  6. 21:33Pipeline stages evolution
  7. 25:05Avoiding pipeline stalls
  8. 28:19Parallel execution units
  9. 32:03SIMD instructions
  10. 35:17Branch prediction basics
  11. 38:53Branch prediction example
  12. 44:33Eliminating branches
  13. 47:28SIMD element counting
  14. 48:13Key takeaways
  15. 50:20Advanced CPU optimization
  16. 51:01Q&A
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.