Vitaly added the comment:

Also, attempting to read a 1MB chunk of data in a single os.read call forces 
os.read() to unnecessarily allocate a huge !MB buffer (even if only for a short 
lifetime).  Using something like 4KB read calls in a loop is more practical 
(and looping is necessary anyway).

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue15918>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to