Message248632
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 |
|
Date |
User |
Action |
Args |
2015-08-15 03:13:43 | methane | set | recipients:
+ methane, vstinner, ezio.melotti |
2015-08-15 03:13:43 | methane | set | messageid: <1439608423.88.0.0757117336714.issue24870@psf.upfronthosting.co.za> |
2015-08-15 03:13:43 | methane | link | issue24870 messages |
2015-08-15 03:13:43 | methane | create | |
|