Message145192
| 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: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 |
|