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 methane
Recipients ezio.melotti, methane, vstinner
Date 2015-08-15.03:13:43
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1439608423.88.0.0757117336714.issue24870@psf.upfronthosting.co.za>
In-reply-to
Content
On MacBook Pro (Core i5 2.6GHz), surrogateescape 1MB data takes 250ms.

In [1]: bs = bytes(range(256)) * (4 * 1024)

In [2]: len(bs)
Out[2]: 1048576

In [3]: %timeit x = bs.decode('ascii', 'surrogateescape')
1 loops, best of 3: 249 ms per loop
History
Date User Action Args
2015-08-15 03:13:43methanesetrecipients: + methane, vstinner, ezio.melotti
2015-08-15 03:13:43methanesetmessageid: <1439608423.88.0.0757117336714.issue24870@psf.upfronthosting.co.za>
2015-08-15 03:13:43methanelinkissue24870 messages
2015-08-15 03:13:43methanecreate