[Russell Warren] | I just did a comparison of the copying speed of shutil.copy | against the | speed of a direct windows copy using os.system. I copied a file that | was 1083 KB. | | I'm very interested to see that the shutil.copy copyfileobj | implementation of hacking through the file and writing a new one is | significantly faster... any clue as to why this is? I figure I'm | missing something here.
There are a couple of other options as well which may or may not be faster. I'd meant to time things before putting this page up but never got round to it; maybe I'll give it another go: http://tgolden.sc.sabren.com/python/win32_how_do_i/copy-a-file.html TJG ________________________________________________________________________ This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ -- http://mail.python.org/mailman/listinfo/python-list