~/talk

The Most Important Optimizations to Apply in Your C++ Programs

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

Covers concrete, actionable optimizations: LTO and PGO for build pipelines, replacing malloc and using llvm-bolt for binary layout, annotations like noexcept/restrict/assume, and manual SIMD vectorization with AVX intrinsics including a 4x4 matrix multiply example that shows real speedups. Explains tradeoffs, shows compiler-generated intrinsics and cache/predictor pitfalls (false sharing, layout reordering), and recommends benchmarking workflows and CI performance tests rather than blind rules.

AI-written summary · about

  1. 0:00Introduction
  2. 0:30Overview
  3. 1:03Goals
  4. 4:44Examples
  5. 5:44Compiler Optimizations
  6. 6:25Fast Math
  7. 7:10Link Time Optimization
  8. 8:01Unity Builds
  9. 8:38Linking Statically
  10. 9:24Profiles
  11. 10:34Compilers
  12. 11:36Binary Post Processing
  13. 12:10C Plus Code
  14. 15:36Const
  15. 16:35Global variables
  16. 17:31No except
  17. 18:40Static
  18. 19:39Inline
  19. 20:48Attributes
  20. 21:19Likely
  21. 23:33Assume
  22. 24:39Restrict
  23. 26:05Provenance
  24. 26:52Function Boundaries
  25. 33:23Exception Handling
  26. 34:08Value Qualified Member Functions
  27. 39:32Cache
  28. 46:19Branch Predictor
  29. 50:24SIMD
  30. 51:27Intrinsics
  31. 53:21Conclusion
  32. 55:58Questions
~/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.