0
Fork 0
mirror of https://github.com/zml/zml.git synced 2026-11-16 19:11:09 +00:00

Compare commits

...

1 commit

Author SHA1 Message Date
Steeve Morin
70e67e5b55 zml/mem: allocate staging buffers without an arena
std.heap.ArenaAllocator is a bump allocator, so everythying is backed by
chunks of memory. Whenever we requested a new block, It'll first try to
resize the current chunk and if it fails create a new one. So we end up
over-allocating memory for no good reason. The ArenaAllocator serves no
purpose here, we already track the individual allocations and they're
big enough that we don't need a bump allocator.
2026-11-16 16:38:26 +01:00