This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author rhettinger
Recipients
Date 2002-05-26.15:25:24
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
Filled listobject's tp_iter slot with it's own iterator.  
Speeds looping 5 to 10% (YMMV).

Only half of the speed-up comes from using tp_iter.  
The rest came from code tweaking:
-- eliminate the it variable
-- invert the limit test to avoid jumps
-- bypass the GET_ITEM macro to allow index++ to be 
combined with the lookup.

History
Date User Action Args
2007-08-23 15:13:24adminlinkissue560736 messages
2007-08-23 15:13:24admincreate