Message195154
Ran some benchmark numbers:
$ ./python -m timeit -s "from pprint import saferepr; s='é\"x' * 1000" "saferepr(s)"
-> before patch: 555 usec per loop
-> after patch: 10.9 usec per loop
$ ./python -m timeit -s "from pprint import saferepr; s='xxx' * 1000" "saferepr(s)"
-> before patch: 290 usec per loop
-> after patch: 8.68 usec per loop |
|
Date |
User |
Action |
Args |
2013-08-14 13:29:17 | pitrou | set | recipients:
+ pitrou, mvyskocil, serhiy.storchaka |
2013-08-14 13:29:17 | pitrou | set | messageid: <1376486957.77.0.615124443928.issue18682@psf.upfronthosting.co.za> |
2013-08-14 13:29:17 | pitrou | link | issue18682 messages |
2013-08-14 13:29:17 | pitrou | create | |
|