Taming Dynamic Memory - An Introduction to Custom Allocators in C++
Explore dynamic memory allocation in C++ and learn about custom allocators in this conference talk from code::dive 2018. Delve into basic allocation techniques like pooling and monotonic allocation, examining their performance and reliability. Understand technical challenges such as alignment and stateful allocator management in the standard library. Discover popular allocator implementations and how to integrate them with modern C++ codebases. Cover topics including coalescing, shared global state, memory leaks, runtime properties, and real-world examples. Examine STD vector, node-based containers, and hashmaps, discussing their extremes and rehash operations. Learn about padding, alignment, and natural alignment in memory allocation. Investigate the default allocator, single allocator, memory reclamation, and auxiliary data structures. Explore the pool allocator, its chunks, overwrite capabilities, and runtime costs. Understand multipool allocators, custom allocators in C, PMR memory resources, and global locators to enhance your C++ programming skills. Read more