New submission from STINNER Victor: Attached patch rewrites the C implementation of StringIO to use the _PyUnicodeWriter API instead of the PyAccu API. It provides better performance when writing non-ASCII strings.
The patch adds new functions: - _PyUnicodeWriter_Truncate() - _PyUnicodeWriter_WriteStrAt() - _PyUnicodeWriter_GetValue() ---------- components: IO, Unicode files: stringio_unicode_writer.patch keywords: patch messages: 167850 nosy: ezio.melotti, haypo, pitrou priority: normal severity: normal status: open title: Rewriter StringIO to use the _PyUnicodeWriter API versions: Python 3.4 Added file: http://bugs.python.org/file26752/stringio_unicode_writer.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue15612> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com