[issue12053] Add prefetch() for Buffered IO (experiment)
Antoine Pitrou
report at bugs.python.org
Fri Jun 10 19:17:58 CEST 2011
Antoine Pitrou <pitrou at free.fr> added the comment:
> 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.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12053>
_______________________________________
More information about the Python-bugs-list
mailing list