Message215677
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. |
|
Date |
User |
Action |
Args |
2014-04-07 09:10:44 | vstinner | set | recipients:
+ vstinner, serhiy.storchaka |
2014-04-07 09:10:44 | vstinner | set | messageid: <1396861844.88.0.0543379452839.issue21165@psf.upfronthosting.co.za> |
2014-04-07 09:10:44 | vstinner | link | issue21165 messages |
2014-04-07 09:10:44 | vstinner | create | |
|