New submission from INADA Naoki:

>From PEP393, PyUnicode_AsUCS4 is inefficient.
And C implementation of io.StringIO() uses it.

That's why Python 3 is slower than Python 2 on logging_format and 
logging_simple benchmarks.
https://mail.python.org/pipermail/speed/2017-February/000503.html

Maybe, it can use _PyUnicodeWriter APIs instead.

----------
components: IO
messages: 297394
nosy: inada.naoki
priority: normal
severity: normal
status: open
title: StringIO uses inefficient PyUnicode_AsUCS4
type: performance
versions: Python 3.7

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

Reply via email to