[pypy-issue] [issue729] Pypy strangely slow when reading files

Armin Rigo tracker at bugs.pypy.org
Thu Jun 2 13:43:38 CEST 2011


Armin Rigo <armin.rigo at gmail.com> added the comment:

I did that in the branch 'buffer-readline', but did not test it much so far. 
Due to the different levels we use, it needs a new layer in streamio.py that
does minimal buffering for readline() even in otherwise non-buffered streams. 
As a side-effect, the app-level readline() is faster too, not just iteration
(i.e. next()).  It needs careful review, and also thinking if doing buffering
when the app-level readline() is called is reasonable, or potentially breaks
subtle cases.

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


More information about the pypy-issue mailing list