Overview
Explore the controversial topic of optimizing C++ virtual functions in this thought-provoking conference talk from CppCon 2023. Delve into the common belief that virtual functions should be avoided and examine the validity of this notion. Investigate the performance implications of virtual functions, their alternatives, and the associated trade-offs. Gain insights into the origins of this optimization mindset and understand how virtual functions interact with modern CPU architectures. Challenge preconceived notions about benchmarking and optimization techniques. Leave with a deeper understanding of the complexities surrounding virtual function optimization and the ability to ask more informed questions about performance in C++ programming.
Syllabus
Optimizing Away C++ Virtual Functions May Be Pointless - Shachar Shemesh - CppCon 2023
Taught by
CppCon