This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients benjamin.peterson, jcon, nadeem.vawda, pitrou, stutzbach, vstinner
Date 2011-06-10.17:17:57
SpamBayes Score 1.5009613e-07
Marked as misclassified No
Message-id <1307726271.3653.4.camel@localhost.localdomain>
In-reply-to <1306610234.1.0.791958193778.issue12053@psf.upfronthosting.co.za>
Content
> I started a draft in python. I am attaching the _pyio version along
> with tests. I will continue work on the C implementation and
> eventually documentation if this is well received. It seems
> straightforward, I am interested to see what you guys think.

Thank you. I think performance measurements are prematurate until we
have an optimized C implementation anyway.

I think ultimately we also want a default implementation of read(),
peek() and read1() which uses prefetch(), so that BufferedReader
implementations only have to implement prefetch().
(care must be taken to avoid infinite loops)

That said, I think the python-dev mailing-list needs to be convinced of
the usefulness of prefetch() (if it was only me, there wouldn't be any
problem :-)). Perhaps you want to run another discussion there.
History
Date User Action Args
2011-06-10 17:17:58pitrousetrecipients: + pitrou, vstinner, nadeem.vawda, benjamin.peterson, stutzbach, jcon
2011-06-10 17:17:58pitroulinkissue12053 messages
2011-06-10 17:17:57pitroucreate