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 pitrou
Recipients loewis, mark.dickinson, pitrou, serhiy.storchaka, vstinner
Date 2012-05-09.05:38:23
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1336541782.3352.0.camel@localhost.localdomain>
In-reply-to <1336521522.38.0.748341957924.issue14744@psf.upfronthosting.co.za>
Content
> According to my benchmark (see below), formating a small number (5
> decimal digits) is 17% faster with my patch version 2 compared to tip,
> and 38% faster compared to Python 3.3 before my optimizations on str%
> tuples or str.format(). Creating a temporary PyUnicode is not cheap,
> at least for short strings.

A 17% improvement on a micro-benchmark is not much. There will probably
be no visible difference in real-world code.

Also, if creating temporary PyUnicodes is not cheap, perhaps we could
have a freelist for them?
History
Date User Action Args
2012-05-09 05:38:24pitrousetrecipients: + pitrou, loewis, mark.dickinson, vstinner, serhiy.storchaka
2012-05-09 05:38:23pitroulinkissue14744 messages
2012-05-09 05:38:23pitroucreate