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 pitrou
Date 2011-10-08.22:18:30
SpamBayes Score 0.00039550423
Marked as misclassified No
Message-id <1318112311.49.0.66949742663.issue13136@psf.upfronthosting.co.za>
In-reply-to
Content
This patch speeds up _PyUnicode_CONVERT_BYTES by unrolling its loop.

Example micro-benchmark:

./python -m timeit -s "a='x'*10000;b='\u0102'*1000;c='\U00100000'" "a+b+c"

-> before:
100000 loops, best of 3: 14.9 usec per loop
-> after:
100000 loops, best of 3: 9.19 usec per loop
History
Date User Action Args
2011-10-08 22:18:31pitrousetrecipients: + pitrou
2011-10-08 22:18:31pitrousetmessageid: <1318112311.49.0.66949742663.issue13136@psf.upfronthosting.co.za>
2011-10-08 22:18:30pitroulinkissue13136 messages
2011-10-08 22:18:30pitroucreate