[issue11303] b'x'.decode('latin1') is much slower than b'x'.decode('latin-1')

Ezio Melotti report at bugs.python.org
Thu Feb 24 17:15:58 CET 2011


Ezio Melotti <ezio.melotti at gmail.com> added the comment:

If the first normalization function is flexible enough to match most of the spellings of the optimized encodings, they will all benefit of the optimization without having to go through the long path.

(If the normalized encoding name is then passed through, the following normalization functions will also have to do less work, but this is out of the scope of this issue.)

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11303>
_______________________________________


More information about the Python-bugs-list mailing list