[pypy-dev] cpyext performance

Maciej Fijalkowski fijall at gmail.com
Wed Jul 4 10:48:50 CEST 2012


On Wed, Jul 4, 2012 at 8:27 AM, Stefan Behnel <stefan_ml at behnel.de> 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.
>
> Stefan
>
>
Feel free to use the wiki on bitbucket.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20120704/f858d960/attachment.html>


More information about the pypy-dev mailing list