3 ms·
> No, it reduces memory fragmentation, which is why it's called compacting and not compression. …which reduces memory usage because you don't have to waste it
by astrange 6mo ago
> No, it reduces memory fragmentation, which is why it's called compacting and not compression.
…which reduces memory usage because you don't have to waste it on free holes in the allocated pages.
- cogman10 6mo agoBut then increases memory usage because you need more pages allocated to move memory to. It's an allocation and cache optimization more than a memory saving optimization.