[Python-Dev] Optimized string concatenation (original) (raw)

Armin Rigo arigo at tunes.org
Tue Aug 3 10:54:01 CEST 2004


Hello,

The SF patch http://www.python.org/sf/980695 about making repeated string concatenations efficient has been reviewed and is acceptable on technical grounds. This is about avoiding the quadratic behavior of

s = '' for x in y: s += some_string(x)

This leaves open the policy questions:

This seems overkill, but should the acceleration be there but disabled by default?

from future import string_concatenate?

A bientôt,

Armin.



More information about the Python-Dev mailing list