Antoine Pitrou added the comment:

> _PyUnicodeWriter is almost always faster

Actually, PyAccu is consistently faster for the "writer" case, while 
_PyUnicodeWriter is faster for the "writer-reader" case.
This is not because of PyAccu, but because of the way StringIO uses it: when 
e.g. readline() is called, the PyAccu result is converted into a PyUCS4* 
buffer, then each readline() result is converted again by finding the max char 
in the sub-buffer.

So I would suggest using PyAccu, but converting its result to a 
_PyUnicodeWriter rather than a PyUCS4* buffer.

----------

_______________________________________
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

Reply via email to