Serhiy Storchaka added the comment: 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 ---------- Added file: http://bugs.python.org/file33096/encode_utf32_3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15027> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com