Re:Golang's Big Miss on Memory Arenas
by jitl on Thursday December 11, 2025 @01:09AM
(#46228218)
I had to fork go’s CSV to make it re-use buffers and avoid defensive copies. But im not sure an arena api is a panacea here - even if i can supply an arena, the library needs certain guarantees about how memory it returns is aliased / used by the caller. Maybe it would still defensive copy into the arena, maybe not. So i don’t see how taking arena as parameter lets a function reason about how safely it can use the arena.
[ Parent
| on HN ]
There are no comments on this comment yet.