[issue11313] Speed up default encode()/decode()
Alexander Belopolsky
report at bugs.python.org
Fri Feb 25 02:21:20 CET 2011
Alexander Belopolsky <belopolsky at users.sourceforge.net> added the comment:
Committed issue11313.diff in revision 88553.
On the second thought, the getargs optimization is not worth the trouble because in existing sources 'e' code is used with constant encodings and one is unlikely to pass NULL as an encoding because that is equivalent to eliding the 'e' code altogether.
I will keep this issue open to consider whether remaining
if (encoding == NULL)
encoding = PyUnicode_GetDefaultEncoding();
clauses can be simply removed because the lower level code accepts NULL in encoding.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue11313>
_______________________________________
More information about the Python-bugs-list
mailing list