]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
Apply pre-sizing optimization to a broader class of objects.
authorRaymond Hettinger <python@rcn.com>
Sun, 4 Jan 2004 11:00:08 +0000 (11:00 +0000)
committerRaymond Hettinger <python@rcn.com>
Sun, 4 Jan 2004 11:00:08 +0000 (11:00 +0000)
commitb86269db458f63b95be8017e47671092be3b48d1
tree7d923c10b04385faf611a9df19be81f504a3e5d9
parent4618cc09ec6b155c1570be07c7da37327f6e2293
Apply 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.
Objects/abstract.c
Python/bltinmodule.c