[issue16061] performance regression in string replace for 3.3

Thomas Lee report at bugs.python.org
Fri Sep 28 08:39:48 CEST 2012


Thomas Lee added the comment:

My results aren't quite as dramatic as yours, but there does appear to be a regression:

$ ./python -V
Python 2.7.3+

$ ./python -m timeit -s "s = 'b'*1000" "s.replace('b', 'a')"
100000 loops, best of 3: 16.5 usec per loop

$ ./python -V
Python 3.3.0rc3+

$ ./python -m timeit -s "s = 'b'*1000" "s.replace('b', 'a')"
10000 loops, best of 3: 22.7 usec per loop

----------
nosy: +thomaslee

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16061>
_______________________________________


More information about the Python-bugs-list mailing list