>> Go through memory, find all the dead objects, and *then* defrag the
>> whole lot in a single pass. Done.
>
> And how is that faster from simply freeing the dead objects? The original
> point was that GC is much faster than freeing each object individually.
> Moving the dead objects around in memory before freeing them isn't going
> to help.
Nooo... move the *live* objects around. Not the dead ones.
And typically you use some kind of algorithm which reduces the amount
you need to do even that.
Post a reply to this message
|