STINNER Victor <vstin...@python.org> added the comment:
Since CJK codecs have been implemented, unicodeobject.c got multiple optimizations: * _PyUnicodeWriter for decoder: API designed with efficiency and PEP 393 (compact string) in mind * _PyBytesWriter for encoders: in short, API to overallocate a buffer * _Py_error_handler enum and "_Py_error_handler _Py_GetErrorHandler(const char *errors)" function to pass an error handler as an integer rather than a string But rewriting CJK codecs with these is a lot of effort, I'm not sure that it's worth it. ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue41330> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com