|
|
Orchid XP v8 <voi### [at] devnull> wrote:
> Well given a long chain of objects pointing to objects, and a pure
> reference counting system, each scan of the GC will only reclaim *one*
> object from the chain. If the chain is long, it could take a damn long
> time to reclaim all that memory.
Hmm, you are mixing reference counting with garbage collection.
In a pure reference counting system the object is destroyed immediately
when all references to it go out of scope. There are no "GC scans".
(Naturally if it's a long chain of references, destroying the first
object will destroy all the others like dominoes falling.)
> Reference counting really is far too simplistic to work properly.
Well, as long as you don't have circular references (there are ways
to make it *difficult* to create them) I don't see a problem.
--
- Warp
Post a reply to this message
|
|