]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Apply map/zip pre-sizing optimization to a broader class of objects.
authorRaymond Hettinger <python@rcn.com>
Sun, 4 Jan 2004 08:54:44 +0000 (08:54 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 4 Jan 2004 08:54:44 +0000 (08:54 +0000)
commit77f3c8711337c887c072c43be2aec7a3079819f3
tree7326bdf06fc7e8c53c668e3e23b4bf764cba3194
parent7832cd6141116cc64f6304f1107631e28cd7ee08
Apply map/zip pre-sizing optimization to a broader class of objects.
Formerly, the length was only fetched from sequence objects.
Now, any object that reports its length can benefit from pre-sizing.
Python/bltinmodule.c