Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Explore the most crucial optimizations for C++ programs in this comprehensive conference talk from CppCon 2022. Delve into efficient programming techniques, performance goals, and practical examples presented by Jan Bielak. Learn about compiler optimizations, fast math, link-time optimization, unity builds, static linking, and profiling. Discover the importance of const, global variables, noexcept, static, inline attributes, and function boundaries. Gain insights into exception handling, value-qualified member functions, cache optimization, branch prediction, and SIMD intrinsics. Understand performance pitfalls and best practices to enhance your C++ code without sacrificing readability or maintainability.
Syllabus
Introduction
Overview
Goals
Examples
Compiler Optimizations
Fast Math
Link Time Optimization
Unity Builds
Linking Statically
Profiles
Compilers
Binary Post Processing
C Plus Code
Const
Global variables
No except
Static
Inline
Attributes
Likely
Assume
Restrict
Provenance
Function Boundaries
Exception Handling
Value Qualified Member Functions
Cache
Branch Predictor
SIMD
Intrinsics
Conclusion
Questions
Taught by
CppCon