~/talk

An Overview of Program Optimization Techniques

Talkat ACCU 2017 · 2017-04-24..04-29· [c-and-cpp, web-performance]
links:none on file
slides:none on file

Covers what hardware actually does (pipelining, out‑of‑order, superscalar ports, caches, NUMA and SMT) and when manual changes help: use Sandy Bridge microarchitecture examples, Godbolt assembly to show inlining reduces stack traffic on 32‑bit ABIs, and hwloc/perf/VTune to find stalls and false sharing. Gives concrete costs (floating‑point divide ~20 cycles, integer divide ~40 cycles), shows tiling, loop unrolling, SIMD/AVX intrinsics and metaprogrammed FFTs that significantly speed up numeric kernels, and explains Newton‑Raphson reciprocal/sqrt tricks (the famous inverse square root (Quake III)) and when to trust the compiler versus hand optimization.

AI-written summary · about

  1. 0:00Introduction
  2. 1:40What is optimization
  3. 4:40X86 optimization
  4. 6:30Assembly
  5. 16:17Port Types
  6. 17:07Auto Order Execution
  7. 19:08Avoid Stalls
  8. 19:43Not all instructions are equal
  9. 20:17Relative instruction speed
  10. 21:47SIMD
  11. 24:27Multithreading
  12. 30:17Complex Switches
  13. 31:53Caches
  14. 35:54Compact Objects
  15. 36:49Padding
  16. 37:08Branch prediction
  17. 38:37Branch code
  18. 39:41Static branch prediction
  19. 44:30Inlining
  20. 45:28ABI Cost
  21. 48:20Specialized Optimization
  22. 49:02Metaprogramming
  23. 51:32Explicit Load
  24. 52:58Unrolling
  25. 53:30Overload
  26. 54:10Advanced Optimization
  27. 56:12Loop Optimization
  28. 58:30Register Rotation
~/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.