String performance regression from python 3.2 to 3.3

Steven D'Aprano steve+comp.lang.python at pearwood.info
Sat Mar 16 01:38:37 EDT 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?



-- 
Steven




More information about the Python-list mailing list