Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tynorf
44 days ago
|
parent
|
context
|
favorite
| on:
ArenaAllocators don't play nicely with ArrayLists
FWIW, if you aren’t interleaving other allocations (which includes on other threads), the ArenaAllocator in Zig doesn’t have this problem. If you attempt to resize the most recent allocation, it will do so in place if possible.
https://ziglang.org/documentation/0.16.0/std/#std.heap.Arena...
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
https://ziglang.org/documentation/0.16.0/std/#std.heap.Arena...