Antoine Pitrou added the comment: > > That said, I'll try out the patch with _PyUnicode_FromUCS1 instead > > of _PyUnicode_FromASCII, to see if it affects performance. > > Could you try out the patch with PyUnicode_DecodeUTF8()? This will > save you two opcodes and perhaps several lines of code.
That would be a change in behaviour, since currently "surrogatepass" is the error handler. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19219> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com