[issue4565] io write() performance very slow
Antoine Pitrou
report at bugs.python.org
Sat Dec 6 22:52:38 CET 2008
Antoine Pitrou <pitrou at free.fr> added the comment:
Hi Amaury,
> There is a project to rewrite it in C
Thanks for publicizing this. I'm a bit surprised by the adopted
approach. It seems you are merely translating the Python code into C. I
think the proper approach for the buffered IO classes would be to use a
fixed-size buffer which never gets reallocated.
If you look at bufferedwriter2.patch in #3476, I had rewritten
BufferedWriter using a fixed-size buffer (although not for performance
reasons), I think it would be a good starting point for a C implementation.
----------
nosy: +pitrou
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue4565>
_______________________________________
More information about the Python-bugs-list
mailing list