by OnlyMortal · 2y ago · 0 comments
You can also use the pool to bound the maximum size you’re able to allow.
At least, if someone asked me to explain what an arena allocator is/does, I would say essentially what they wrote -- likely without the "disappears automatically once all references disappear" part, which is IMHO just a clever nice-to-have.
It also helps to bound your memory usage. A request could block until memory was free.