3 ms·
I understood that part completely. You misunderstood my point, which is that with enough memory, generational GC outperforms naive explicit memory management, w
by lern_too_spel 6y ago
I understood that part completely. You misunderstood my point, which is that with enough memory, generational GC outperforms naive explicit memory management, which is impossible with reference counting.
> Except under unusual conditions, there is no case where GC is faster than manual.
Their simple generational GC outperforms manual memory management in every single workload in that paper given enough memory, so that statement is clearly false. A production quality GC does so with less memory.
> Well, probably this is because GCs are fast when they have low to no memory pressure. They simply don't need to garbage collect anything.
This is wrong. It's because generational GCs start to look like arena allocators when they have enough memory, with cheap bump allocation and bulk deallocation. On most of their workloads, their simple generational GC already outperforms naive explicit memory management with less than 3x the memory, and this would certainly be better with explicit tuning or a production GC.
- quotemstr 6y agoIsn't it amazing how your well-informed comments get downvoted?