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

Alexander Belopolsky report at bugs.python.org
Thu Feb 24 01:20:36 CET 2011


Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:

In issue11303.diff, I add similar optimization for encode('latin1') and for 'utf8' variant of utf-8.  I don't think dash-less variants of utf-16 and utf-32 are common enough to justify special-casing.

----------
Added file: http://bugs.python.org/file20872/issue11303.diff

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


More information about the Python-bugs-list mailing list