std.heap.ArenaAllocator should attempt to resize before allocating a new node #5116
Labels
contributor friendly
This issue is limited in scope and/or knowledge of Zig internals.
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
optimization
standard library
This issue involves writing Zig code for the standard library.
Milestone
Currently ArenaAllocator does this:
After #4431 is implemented, this can be improved to attempt a resize before creating a new allocation. This will make it OK to use an
ArenaAllocator
as the backing allocator of anArenaAllocator
when it is the newest allocation.The text was updated successfully, but these errors were encountered: