by ColonelPhantom · 1y ago · 0 comments
GC usually also comes in "copying" variants, which can have advantages like reducing memory fragmentation.
Memory fragmentation can more easily be reduced by pooled allocators. For long-running server processes, it can also be possible to just kill the worker processes/threads from time to time. And I've never seen memory fragmentation in manually allocated languages lead to more memory consumption or worse performance than in Java.