News for hackers. Stuff that matters.
Re:Memory Management Reference by foota on Tuesday July 12, 2022 @05:46PM (#32076090)
I think there's two common usages of the term arena, I might call them homogenous and non homogenous. Is there much reason to use a non homogenous arena with something other than a bump allocator?
Re:Memory Management Reference by vitiral on Friday July 15, 2022 @11:22AM (#32109069)
I'm not sure what homogeneous means in this context?

Arenas allow you to not worry about freeing memory, since it will all be freed in a single chunk. It also allows using allocators which are less concerned with fragmentation, since it is known that the arena memory will eventually be dropped.

The amount you are concerned with fragmentation ranges from zero concern (bump allocator) to moderate concern (maybe buddy allocator) to larger concern depends on the application and its tradeoffs, like most things in software engineering.