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 <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