[issue14744] Use _PyUnicodeWriter API in str.format() internals
report at bugs.python.org
Sun May 13 22:15:43 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 :-)
> Ok, here you have. I don't understand why results are so random. There
> is no performance regression, but there are interesting speed up.
Do you have anything more interesting than fmt="%s" ?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list