]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Make the new dictionary iterators transparent with respect to length.
authorRaymond Hettinger <python@rcn.com>
Thu, 18 Mar 2004 08:38:00 +0000 (08:38 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 18 Mar 2004 08:38:00 +0000 (08:38 +0000)
commit0ce6dc85300050356dfa127d741e80fdc9ad987a
treec91e503b59aaf8079758ae1586c78b9c26d51afa
parent0e5e6c70e6949bb82c54e1da2cff1836523902c4
Make the new dictionary iterators transparent with respect to length.
This gives another 30% speedup for operations such as
map(func, d.iteritems()) or list(d.iteritems()) which can both take
advantage of length information when provided.
Objects/dictobject.c