[pypy-dev] Cython and cpyext performance

Stefan Behnel stefan_ml at behnel.de
Sat Feb 25 10:14:08 CET 2012

Stefan Behnel, 24.02.2012 11:32:
> Amaury Forgeot d'Arc, 24.02.2012 10:27:
>> I was about to write the list of operations that cpyext performs for
>> PyTuple_GET_ITEM, but this macro is too large to fit in the margin :-)
> Interesting. Is there a better way of doing this? CPython doesn't seem to
> provide a way to ask for owned references, even though Cython will quite
> often (but not always) call Py_INCREF() on the result anyway. Would the
> tuple parsing functions help, for example? There may well be cases where we
> could use those. Wouldn't be the first time I rewrite the function argument
> handling code, for example. ;-)

What do you think of this proposal?



More information about the pypy-dev mailing list