[issue14744] Use _PyUnicodeWriter API in str.format() internals

Serhiy Storchaka report at bugs.python.org
Sun May 13 22:14:33 CEST 2012


Serhiy Storchaka <storchaka at gmail.com> added the comment:

Not quite honest contrexample:

./python -m timeit -s "f='[{}]'.format;s='A'*100" "f(s)"

Python 3.3: 1000000 loops, best of 3: 1.67 usec per loop
Python 3.3 + dont_overallocate.patch: 100000 loops, best of 3: 2.01 usec per loop

----------

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


More information about the Python-bugs-list mailing list