[Python-3000] Delayed reference counting idea

Barry Warsaw barry at python.org
Tue Sep 19 18:01:53 CEST 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Sep 19, 2006, at 11:29 AM, Marcin 'Qrczak' Kowalczyk wrote:

> Barry Warsaw <barry at python.org> writes:
>
>> I don't see how that helps.  I can remove all references to the
>> object but I still have to wait until gc runs to free it.  Can you
>> explain your idea in more detail?
>
> Objects which should be closed deterministically have the closing
> action decoupled from the lifetime of the object. They are closed
> explicitly; the object in a "closed" state doesn't take up any
> sensitive resources.

It's not external resources I'm concerned about, it's the physical  
memory consumed in process by objects which are unreachable but not  
reclaimed.

- -Barry

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iQCVAwUBRRAUdXEjvBPtnXfVAQKFuQP9HmWucjJ//dTiEnEmjCgLNDbFF1J12c5U
KwZAbBZw0CFjtZXCF9/cGuZ+KWROJGIB7A6YnqqmuIXhJ82t6Qmvm257pvQkWe/5
HmZbLCPoGKzmL33ince2f5gLxqKzl90B2L24TLlEYvrfOS9KTe2ree3HJXmyuRz3
471OBzViVAA=
=WhVp
-----END PGP SIGNATURE-----


More information about the Python-3000 mailing list