Initial ArenaAllocator node capacity
Ziggit
Initial ArenaAllocator node capacity
Hello! One of the things I like about arenas is essentially the dynamic array you get for free assuming your arena is big enough, and allows you to grow an element at a time. But I suspect std.heap.ArenaAllocator may not be great for this. From what I gathered by looking at alloc’s source code, it seems the starting arena node will only have 16 bytes, and new nodes will only be larger by however much more memory I need + 16 bytes at a time. This makes it worse than a GPA for dynamic arrays, as...
0 comments
No comments yet.