Message138118
| 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. |
|