STINNER Victor added the comment:

"Soon I'll post a patch, which speeds up unicode-escape and raw-unicode-escape 
decoders to 1.5-3x. Also there are not yet reviewed patches for UTF-32 
(issue14625) and charmap (issue14850) decoders. Will be merge conflicts."

codecs_writer.patch doesn't change too much the core of decoders, but mostly 
the code before and after the loop, and error handling. You can still use 
PyUnicode_WRITE, PyUnicode_READ, memcpy(), etc.

"But I will review the patch."

If you review the patch, please check that how the buffer is allocated. It 
should not be overallocated by default, only on the first error. Overallocation 
can kill performances when it is not necessary (especially on Windows).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue16311>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to