String performance regression from python 3.2 to 3.3

Steven D'Aprano steve+comp.lang.python at
Sat Mar 16 06:38:37 CET 2013

On Fri, 15 Mar 2013 21:35:42 -0700, rusi wrote:

> And ignores that 3.3 trades time for space.

So what? Lists, dicts and sets trade time for space: they are generally 
over-allocated to ensure a certainly level of performance. The language 
designers are perfectly permitted to make that choice. If somebody wants 
to make another choice they can design their own language, or write their 
own data structures, or put in a bug report and hope to influence the 
language designers to change their minds. Why should strings be treated 
any differently?


More information about the Python-list mailing list