3 ms·
> you still need to traverse all the live objects and then copy all of them. The live objects traversed are generally not short-lived objects, because those ar
by layer8 4y ago
> you still need to traverse all the live objects and then copy all of them.
The live objects traversed are generally not short-lived objects, because those aren’t live anymore! Meaning, short-lived objects typically aren’t traversed and therefore don’t contribute to the GC cost like longer-lived objects do.