[Python-Dev] GC Changes

Nicholas Bastin nick.bastin at gmail.com
Mon Oct 8 02:18:02 CEST 2007


On 10/3/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
> Martin v. Löwis wrote:
> > For stack frames,
> > such a registration is difficult to make efficient.
>
> Also very error-prone if you happen to miss one. Although
> maybe no more error-prone than getting the reference
> counting right.

Maybe, but reference counting is really easy to debug if you screw it
up.  This is probably one of the primary benefits of the majority of
memory management being executed in reference counting - it's
deterministic and easy to debug.

I'm not opposed to memory management being done entirely through
garbage collection, but it would have to be vastly superior to the
current system in both memory efficiency and performance.

--
Nick


More information about the Python-Dev mailing list