3 ms·
Well since compacting means the expensive task of moving managed memory blocks around to free larger sections that solution certainly comes with a big penalty o
by gillianseed 13y ago
Well since compacting means the expensive task of moving managed memory blocks around to free larger sections that solution certainly comes with a big penalty of it's own.
Better to avoid heap fragmentation to such extents by applying a better allocation strategy imo.
- betterunix 13y agoThat is why generational collectors are so good. It is not common to have huge blocks of memory than also happen to be short lived, and if you do have such a design, you can probably refactor it (or just not use garbage collection there, which any production-grade programming environment should allow by some means).