This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka, vstinner
Date 2012-05-23.21:34:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1337808900.04.0.346298442367.issue14744@psf.upfronthosting.co.za>
In-reply-to
Content
For Python 3.3, _PyUnicodeWriter API is faster than the Py_UCS4 buffer API and PyAccu API in quite all cases, with a speedup between 30% and 100%. But there are some cases where the _PyUnicodeWriter API is slower:

fmt="x={}"; arg=12.345; fmt.format(arg)
fmt="{}:"; arg=12.345; fmt.format(arg)
fmt="x=%s"; arg="\u20ac" * 3; fmt % arg
fmt="%s:"; arg="abc"; fmt % arg
fmt="%s:"; arg="\u20ac" * 3; fmt % arg
fmt="\u20ac[%s]"; arg="abc"; fmt % arg
fmt="\u20ac[%s]"; arg="\u20ac" * 3; fmt % arg
fmt="\u20ac[%s]"; arg=12.345; fmt % arg
fmt="\u20ac[%s]"; arg=2j; fmt % arg
History
Date User Action Args
2012-05-23 21:35:00vstinnersetrecipients: + vstinner, loewis, mark.dickinson, pitrou, python-dev, serhiy.storchaka
2012-05-23 21:35:00vstinnersetmessageid: <1337808900.04.0.346298442367.issue14744@psf.upfronthosting.co.za>
2012-05-23 21:34:59vstinnerlinkissue14744 messages
2012-05-23 21:34:59vstinnercreate