diff options
author | Raymond Hettinger <python@rcn.com> | 2004-12-16 10:38:38 +0000 |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2004-12-16 10:38:38 +0000 |
commit | 4d01259fb262e7eb035b56ae70637884ef4e8cd8 (patch) | |
tree | 215dc207de652cf3b9b2d6b42b30e3e10c346f5e /Modules/arraymodule.c | |
parent | 8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6 (diff) | |
download | cpython-git-4d01259fb262e7eb035b56ae70637884ef4e8cd8.tar.gz |
SF bug #1085744: Performance issues with PySequence_Tuple()
* Added missing error checks.
* Fixed O(n**2) growth pattern. Modeled after lists to achieve linear
amortized resizing. Improves construction of "tuple(it)" when "it" is
large and does not have a __len__ method. Other cases are unaffected.
Diffstat (limited to 'Modules/arraymodule.c')
0 files changed, 0 insertions, 0 deletions