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

Armin Rigo tracker at bugs.pypy.org
Thu Jun 2 12:32:13 CEST 2011


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

Da_Blitz: ah, it's because CPython has special code for iterating over a file. 
It's not equivalent to calling f.readline() to get the next line.  It's doing
some read-ahead and caching on its own...

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


More information about the pypy-issue mailing list