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.
Showing
Please
register
or
sign in
to comment