Explore strategies for minimizing allocations in C++ containers through this conference talk from C++ on Sea 2022. Discover practical recipes to enhance runtime performance, starting with basic techniques like std::vector::reserve and progressing to more advanced concepts. Learn about optimal container choices, effective constructor usage, scope promotion, view types, and hands-on examples with pmr allocators. Evaluate the pros and cons of each approach through benchmarks and allocation behavior analysis techniques. Gain insights from Lukas Böger, a civil engineer turned software developer at Oxbotica, as he shares his expertise in optimizing C++ code for autonomous vehicle applications.
Overview
Syllabus
Recipes for Reducing Allocations by C++ Containers - Lukas Böger - C++ on Sea 2022
Taught by
cpponsea