commit | db0de9e7cabc5e7bc052dfc4c8fc1b5dea154009 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Fri Mar 12 08:41:36 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Fri Mar 12 08:41:36 2004 +0000 |
tree | b197929508f9f4ae866f72cd7453a712d5327dca | |
parent | c1e4f9dd92a2b63b26b06035f8c8ee1a5eb52ab3 [diff] |
Speedup for-loops by inlining PyIter_Next(). Saves duplicate tests and a function call resulting in a 15% reduction of total loop overhead (as measured by timeit.Timer('pass')).