[issue2523] binary buffered reading is quadratic
Martin v. Löwis
report at bugs.python.org
Sat Jul 19 15:47:34 CEST 2008
Martin v. Löwis <martin at v.loewis.de> added the comment:
I don't understand the second loop (where n is given). If n is given,
there should be only a single read operation, using
max(buffer_size, n-avail)
(i.e. the way it is in patch 2). In particular, if the stream is
unbuffered, it shouldn't ever end up with buffered data.
----------
nosy: +loewis
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue2523>
_______________________________________
More information about the Python-bugs-list
mailing list