Antoine Pitrou added the comment:

> The time of line 7 was much greater than line 13.

Well, yes, reading 70 MB is much longer than reading a single byte :-)

> I feel that the underlying system call takes the size argument

Indeed it does. It would be totally inefficient if it didn't.

> so I guess that large value suggests the C compiler to make ask the
> disk subsystem to read up the longer data - hence it takes the time
> since disk access is slower.

It's not the C compiler. It's the OS kernel which reads data from the
disk when you ask to.

----------

_______________________________________
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