[Pyrex] Pyrex optimization

Greg Ewing greg at cosc.canterbury.ac.nz
Thu Jan 22 01:33:07 CET 2004


Paul Prescod:

>   b) Pyrex should be smarter about using PySequence_GetItem and 
> PyList_GETITEM etc. when they are appropriate rather than always 
> PyObject_GetItem. (and of course similar issues for SetItem and 
> DelItem). At least some of this can be pretty easily done merely by 
> adding "sequence" and "list" types along with the basic "object" type.

I agree in the case of 'list' (and other built-in types) but
I'm not so sure about 'sequence', since it's not really a type.
I'll have to think more carefully about that.

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