2013/2/19 Maciej Fijalkowski <fij...@gmail.com>

> On Tue, Feb 19, 2013 at 2:09 PM, Eleytherios Stamatogiannakis
> <est...@gmail.com> wrote:
> >
> > So the main culprit of PyPy's slowdown is 'rU' option in open.
> >
> > Thanks for looking into it.
>
> Is this yet-another-fault-of-streamio?


Not quite. Even a implementation based on fread() would need to care of
these universal newlines
and tune the usage of the various buffers.

BTW, I tried io.open, and surprisingly the "rb" mode is twice slower as
"rU".
I guess that's because our io.Buffered is missing a dedicated "readline"
method.

-- 
Amaury Forgeot d'Arc
_______________________________________________
pypy-dev mailing list
pypy-dev@python.org
http://mail.python.org/mailman/listinfo/pypy-dev

Reply via email to