Message145192
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 |
|
Date |
User |
Action |
Args |
2011-10-08 22:18:31 | pitrou | set | recipients:
+ pitrou |
2011-10-08 22:18:31 | pitrou | set | messageid: <1318112311.49.0.66949742663.issue13136@psf.upfronthosting.co.za> |
2011-10-08 22:18:30 | pitrou | link | issue13136 messages |
2011-10-08 22:18:30 | pitrou | create | |
|