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

Antoine Pitrou report at bugs.python.org
Sun May 13 11:56:38 CEST 2012


Antoine Pitrou <pitrou at free.fr> added the comment:

> When it's possible to not overallocate, the speed up is around 10% for
> short strings (I suppose that it's much better to longer strings).

Well, please post a benchmark for long strings, then :-)
I think 10% on a micro-benchmark is not worth the complication. This
code is already complicated enough.

----------

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


More information about the Python-bugs-list mailing list