Arena Allocators for Bulk Free
Free everything in one shot.
Free Everything at Once
An ArenaAllocator groups many allocations together so you can release them all in a single step, instead of freeing each one by hand. 🧹
Built on Another Allocator
An arena does not get memory from thin air. You hand it a backing allocator, and the arena requests memory from it in larger chunks.
var arena = std.heap.ArenaAllocator.init(backing_allocator);All lessons in this course
- GeneralPurposeAllocator for Debug Safety
- Arena Allocators for Bulk Free
- FixedBufferAllocator with No Heap
- Choosing an Allocator per Workload