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 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
History
Date User Action Args
2013-12-11 22:17:02serhiy.storchakasetrecipients: + serhiy.storchaka, pitrou, vstinner, ezio.melotti, Arfrever, asvetlov, BreamoreBoy, kmike
2013-12-11 22:17:02serhiy.storchakasetmessageid: <1386800222.06.0.983066228127.issue15027@psf.upfronthosting.co.za>
2013-12-11 22:17:02serhiy.storchakalinkissue15027 messages
2013-12-11 22:17:01serhiy.storchakacreate