[issue12053] Add prefetch() for Buffered IO (experiment)

2015-04-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The proposed API seems strange to me. Is there an illustration of how > it might be used? I suspect it wouldn’t be all that useful, and could > more or less be implemented with the existing methods: True, but having it a Buffered method would allow it to opt

[issue12053] Add prefetch() for Buffered IO (experiment)

2015-04-07 Thread Martin Panter
Martin Panter added the comment: Sounds like this might be more appropriate for the BufferedReader and related classes, and less so for the writer and abstract base class. The proposed API seems strange to me. Is there an illustration of how it might be used? I suspect it wouldn’t be all that

[issue12053] Add prefetch() for Buffered IO (experiment)

2014-12-20 Thread Martin Panter
Changes by Martin Panter : -- nosy: +vadmium ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue12053] Add prefetch() for Buffered IO (experiment)

2013-09-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-10-03 Thread John O'Connor
John O'Connor added the comment: Here is an update with the C implementation. I think a working prototype will be helpful before another round on python-dev. I'm not sure how to handle unseekable, non-blocking streams where the read returns before `skip` bytes are exhausted. If prefetch() r

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-06-10 Thread Antoine Pitrou
Antoine Pitrou 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. Tha

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
Changes by John O'Connor : Added file: http://bugs.python.org/file22169/issue12053-tests.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
John O'Connor 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. Also, the

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-10 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- nosy: +nadeem.vawda ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-10 Thread John O'Connor
New submission from John O'Connor : A prefetch() method for Buffered IO may greatly assist 3rd party buffering among other gains. If nothing else, it is worth experimenting with. Discussion on the topic is here: http://mail.python.org/pipermail/python-ideas/2010-September/008180.html A summa