3 ms·
Do you think the problem that is addressed by offheap could also have been addressed with a generational garbage collector?
by kbolino 2y ago
Do you think the problem that is addressed by offheap could also have been addressed with a generational garbage collector?
- fmstephe 2y agoFor the problems that arena allocators solve, relatively short lived allocations which die soon, yes. A generational collector would allow for faster allocation rates (a thread local bump allocator would become easy to use). But very long lived data structures, like caches and in memory databases still need to be marked during full heap garbage collection cycles. These are less frequent with a generational collector though.
- deleted 2y ago[deleted]