[issue17440] Some IO related problems on x86 windows

Gurmeet Singh report at bugs.python.org
Sun Mar 17 15:32:36 CET 2013


Gurmeet Singh added the comment:

I did the following to understand time taken for in memory copy:
1>>> fl = io.FileIO('c:/temp9/Capability/Analyzing Data.mp4', 'rb')
2>>> byt = fl.read(70934549)
3>>> byt2 = None
4>>> byt2 = byt[:]
5>>> fl.close()
6>>> fl = io.FileIO('c:/temp9/Capability/Analyzing Data.mp4', 'rb')
7>>> byt = fl.read(1)

I found that python interpreter blocked for negligible time on line 4 (and line 7), as compared to line 2. 

I assume that line 4 is a correct syntax for an in place memory copy.

Therefore, multiple system calls could be taking place - This is how I assumed. Please suggest if I am incorrect.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17440>
_______________________________________


More information about the Python-bugs-list mailing list