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 vstinner
Recipients ezio.melotti, flox, jcea, loewis, pitrou, vstinner
Date 2011-12-17.21:19:14
SpamBayes Score 0.00019347451
Marked as misclassified No
Message-id <1324156756.32.0.745943145245.issue13624@psf.upfronthosting.co.za>
In-reply-to
Content
Python 3.2 (narrow):

ASCII: 10000 loops, best of 3: 28.2 usec per loop
UCS-1: 10000 loops, best of 3: 59.1 usec per loop
UCS-2: 10000 loops, best of 3: 88.8 usec per loop
UCS-4: 1000 loops, best of 3: 254 usec per loop

Python 3.2 (wide):

ASCII: 10000 loops, best of 3: 28.5 usec per loop
UCS-1: 10000 loops, best of 3: 60.8 usec per loop
UCS-2: 10000 loops, best of 3: 114 usec per loop
UCS-4: 10000 loops, best of 3: 129 usec per loop

Python 3.3 (specialized UTF-8 encoder):

ASCII: 100000 loops, best of 3: 2 usec per loop
UCS-1: 10000 loops, best of 3: 45.4 usec per loop
UCS-2: 10000 loops, best of 3: 96.4 usec per loop
UCS-4: 10000 loops, best of 3: 140 usec per loop

Attached patch adds UTF-8 encoder for UCS1, UCS2 and UCS4.
History
Date User Action Args
2011-12-17 21:19:16vstinnersetrecipients: + vstinner, loewis, jcea, pitrou, ezio.melotti, flox
2011-12-17 21:19:16vstinnersetmessageid: <1324156756.32.0.745943145245.issue13624@psf.upfronthosting.co.za>
2011-12-17 21:19:15vstinnerlinkissue13624 messages
2011-12-17 21:19:15vstinnercreate