[Pyrex] Pyrex optimization
Greg Ewing
greg at cosc.canterbury.ac.nz
Thu Jan 22 01:43:40 CET 2004
Phillip J. Eby:
> The other performance issues I've seen with Pyrex are attribute access, and
> global names. I don't know if these are fixed in 0.9, but in previous
> versions, Pyrex uses PyObject_GetAttrString() for attribute lookup, which
> requires memory allocation and various nested calls of overhead before it
> then calls PyObject_GetAttr().
This is one of the things I'm planning to fix. I suspect it's
one of the main reasons that Pyrexed pure-python code is
sometimes slower than interpreted Python.
Greg Ewing, Computer Science Dept, +--------------------------------------+
University of Canterbury, | A citizen of NewZealandCorp, a |
Christchurch, New Zealand | wholly-owned subsidiary of USA Inc. |
greg at cosc.canterbury.ac.nz +--------------------------------------+
More information about the Pyrex
mailing list