Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Taming Dynamic Memory - An Introduction to Custom Allocators in C++

code::dive conference via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This talk explains how custom C++ allocators can address performance, safety, and hardware constraints. It covers allocation techniques, alignment, standard library allocator behavior, and integration into modern C++ codebases.

Syllabus

Introduction
The Simpsons
Agenda
What is dynamic memory
Coalescing
Shared Global State
Simpler locator
Memory leak
Runtime properties
Real world examples
STD vector
Nodebased containers
Hashmap
Hashmap extremes
Rehash operation
Why is it hard to guarantee
What happens on the DLL
Padding
Alignment
Natural alignment
Default allocator
Single allocator
Memory reclamation
Auxiliary data structure
Where to store auxiliary notes
Reasons to store auxiliary notes
The bottom line
The pool locator
Chunks
Overwrite
Put something back
Diffusion
Runtime cost
Memory consumption
Multipool
Custom allocators in C
Historical quirk
PMR memory resources
Chaining
Fixed vs Dynamic
Parameters
Global Locator
Wrapup

Taught by

code::dive conference

Reviews

Start your review of Taming Dynamic Memory - An Introduction to Custom Allocators in C++

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.