[Patches] Re: Final request for GC patch

Vladimir Marangozov Vladimir.Marangozov@inrialpes.fr
Wed, 10 May 2000 14:45:54 +0200 (CEST)


Neil Schemenauer wrote:
> 
> Object alloction has been changed from macros to functions for
> some important objects (list, tuple, dict).  This will make
> Python go slower even with GC disabled.  We will have to profile
> things and find out what should be inlined.  For now I wanted the
> patch to be easy to understand.

What is the rationale behind this change?

> 
> The PyObject_{New, VarNew} and PyObject_Del methods seem to be
> non-orthogonal regarding reference tracing.  I think PyObject_Del
> should call _Py_ForgetReference.
> 

_Py_NewReference and _Py_ForgetReference are asymetric. I haven't
looked into this, but perhaps it is time to see whether they can
be made more symetric. I seem to recall a comment in the source
that regrets they aren't.

-- 
       Vladimir MARANGOZOV          | Vladimir.Marangozov@inrialpes.fr
http://sirac.inrialpes.fr/~marangoz | tel:(+33-4)76615277 fax:76615252