|
|
>> Nooo... move the *live* objects around. Not the dead ones.
>
> Well, you have to know *somehow* which objects are dead and which ones
> aren't. IOW, you need to go through the dead objects and mark them as
> dead. Or you need to go through live objects and mark them as alive.
Mark the live objects as alive.
> Which basically means there are many situations where you can't simply
> mark a whole set of objects as freed with one instruction, as was the
> initial claim.
Actually, my initial claim was not "GC is faster than RC". My initial
claim was "RC doesn't work properly, but GC does", that's all.
> And of course if the objects may have destructors, things get more
> complicated, I suppose.
I've never had the misfortune to try that, but I would imagine it does...
Post a reply to this message
|
|