[pypy-dev] cpyext performance
Stefan Behnel
stefan_ml at behnel.de
Wed Jul 4 08:27:26 CEST 2012
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
More information about the pypy-dev
mailing list