Antoine Pitrou added the comment:

> If only one system call is being made, then I think that 
> fl.read(256) and fl.read(70934549) should take same amount of time to
> complete - assuming disk I/O is the time consuming factor in this
> operation (as compared to memory processing).

What do you mean? Reading a large number of bytes will most certainly always be 
slower than reading a small number of bytes, even if it only takes one system 
call. You still have to copy the data from disk or filesystem buffers into 
userspace.

A reasonable expectation is for read(N) to be O(N), but not O(1). You might 
want to check that by timing it with different N values.

----------

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

Reply via email to