Message43800
Logged In: YES
user_id=4771
Here is a safer patch. It adds a keyword argument 'iter' to range(), e.g.:
>>> range(10, iter=True)
<rangeiterator object at xxx>
and using an appropriate METH_XXX flag, the CALL_FUNCTION opcode now inserts a 'iter=True' keyword to the call when it is followed by GET_ITER.
The patch doesn't live up to its performance promizes. I don't get any improvement at all on any real application. The only example it accelerates is a set of three nested loops :-(
I still attach it for reference, and if someone else want to play with it. |
|
Date |
User |
Action |
Args |
2007-08-23 15:27:14 | admin | link | issue738094 messages |
2007-08-23 15:27:14 | admin | create | |
|