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 vstinner
Recipients serhiy.storchaka, vstinner
Date 2014-04-07.09:10:44
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1396861844.88.0.0543379452839.issue21165@psf.upfronthosting.co.za>
In-reply-to
Content
In issue #21118, I optimized str.translate() in Python 3.5 for ASCII 1:1 mapping and ASCII deletion. My optimization is not used if a character is replaced with a string (ex: "abc".translate({ord('a'): "xxx"})) and for non-ASCII strings.

translate_script.py is a simple benchmark for 1:1 mapping. It should be enhanced to benchmark also replacement strings.
History
Date User Action Args
2014-04-07 09:10:44vstinnersetrecipients: + vstinner, serhiy.storchaka
2014-04-07 09:10:44vstinnersetmessageid: <1396861844.88.0.0543379452839.issue21165@psf.upfronthosting.co.za>
2014-04-07 09:10:44vstinnerlinkissue21165 messages
2014-04-07 09:10:44vstinnercreate