[pypy-issue] [issue1061] non-sequential file writes really slow in pypy

Justin Peel tracker at bugs.pypy.org
Mon Feb 20 19:56:47 CET 2012


Justin Peel <peelpy at gmail.com> added the comment:

I may be wrong, but the problem as I see it is that you aren't erasing /tmp/test 
in between runs. You are running an O(N^2) append operation where N is the size 
of the existing file. Try erasing /tmp/test, running it twice with python, 
erasing /tmp/test again, and running it twice with pypy. I'm seeing very similar 
timings between CPython and Pypy on my machine;.

----------
nosy: +justinpeel

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1061>
________________________________________


More information about the pypy-issue mailing list