Author inada.naoki
Recipients ezio.melotti, inada.naoki, 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:43inada.naokisetrecipients: + inada.naoki, vstinner, ezio.melotti
2015-08-15 03:13:43inada.naokisetmessageid: <1439608423.88.0.0757117336714.issue24870@psf.upfronthosting.co.za>
2015-08-15 03:13:43inada.naokilinkissue24870 messages
2015-08-15 03:13:43inada.naokicreate