[pypy-dev] cpyext performance

Stefan Behnel stefan_ml at behnel.de
Wed Jul 4 11:21:17 CEST 2012

Maciej Fijalkowski, 04.07.2012 10:48:
> On Wed, Jul 4, 2012 at 8:27 AM, Stefan Behnel wrote:
>> Amaury Forgeot d'Arc, 03.07.2012 18:26:
>>> No optimization of any kind have been done in cpyext (it's difficult
>>> enough to get it right...)
>>> A freelist would be a nice thing, but there would still be the cost of
>>> attaching the PyObject to the pypy w_object.
>>> Maybe we should use a weak dictionary to cache the PyObject structure.
>>> This already exists for objects defined and created from C...
>> Is there a PyPy Wiki somewhere where we could collect this kind of ideas?
>> There's also stuff like reusing the PyObject on things like
>> PyNumber_InPlaceAdd() if the refcount is 1, for example.
> Feel free to use the wiki on bitbucket.




More information about the pypy-dev mailing list