commit | 4d01259fb262e7eb035b56ae70637884ef4e8cd8 | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Thu Dec 16 10:38:38 2004 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Thu Dec 16 10:38:38 2004 +0000 |
tree | 215dc207de652cf3b9b2d6b42b30e3e10c346f5e | |
parent | 8a6a59c58b70df6f3f230ddf575b5af0eb0a2fb6 [diff] |
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.