Antoine Pitrou <pit...@free.fr> added the comment: The work to rewrite the IO stack in C will solve this problem as it will probably solve most performance-related IO problems in py3k.
Amaury and I have been progressing a lot, the rewrite is now a real branch in SVN at branches/io-c/. On this very issue, it is only 30% slower than 2.x, which is quite good given the layered nature of the IO stack and the fact that text IO does a lot more than in 2.x (it translates newlines and encodes the text). (actually, if I add an explicit .encode('utf8') call to the 2.x version of the script, it becomes slower than our io-c rewrite) ---------- components: +Extension Modules, Library (Lib) -Interpreter Core stage: -> needs patch title: io write() performance very slow -> Rewrite the IO stack in C versions: +Python 3.1 -Python 3.0 _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue4565> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com