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 pitrou
Recipients mvyskocil, pitrou, serhiy.storchaka
Date 2013-08-14.13:29:17
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1376486957.77.0.615124443928.issue18682@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2013-08-14 13:29:17pitrousetrecipients: + pitrou, mvyskocil, serhiy.storchaka
2013-08-14 13:29:17pitrousetmessageid: <1376486957.77.0.615124443928.issue18682@psf.upfronthosting.co.za>
2013-08-14 13:29:17pitroulinkissue18682 messages
2013-08-14 13:29:17pitroucreate