Message205934
| Author |
serhiy.storchaka |
| Recipients |
Arfrever, BreamoreBoy, asvetlov, ezio.melotti, kmike, pitrou, serhiy.storchaka, vstinner |
| Date |
2013年12月11日.22:17:00 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1386800222.06.0.983066228127.issue15027@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Here is updated patch, synchronized with trunk. UTF-32 encoder now checks surrogates and therefore speedup is less (only up to 5 times). But this compensates regression in 3.4.
On 32-bit Linux, Intel Atom N570 @ 1.66GHz:
Py3.3 Py3.4 patched
531 (+245%) 489 (+274%) 1831 encode utf-32le 'A'*10000
383 (+158%) 223 (+344%) 990 encode utf-32le '\u0100'*10000
325 (+262%) 229 (+414%) 1177 encode utf-32le '\U00010000'*10000
544 (+166%) 494 (+193%) 1448 encode utf-32be 'A'*10000
384 (+67%) 223 (+188%) 642 encode utf-32be '\u0100'*10000
323 (+108%) 229 (+193%) 671 encode utf-32be '\U00010000'*10000 |
|