Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > RE: Speed of shutil.copy vs os.system("copy src dest") in win32

Reply
Thread Tools

RE: Speed of shutil.copy vs os.system("copy src dest") in win32

 
 
Tim Golden
Guest
Posts: n/a
 
      04-27-2006
[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/...py-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
__________________________________________________ ______________________
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
What does the SRC in <IMG SRC> stand for? pheadxdll HTML 16 06-06-2007 02:45 AM
Convert Java Src to J2ME Src? macbrando@gmail.com Java 1 03-23-2007 01:29 PM
Speed of shutil.copy vs os.system("copy src dest") in win32 Russell Warren Python 1 04-27-2006 07:17 AM
<txt src= ...> equivalent of <img src= ...> Steve Richter ASP .Net 3 02-09-2006 08:44 PM
src.jar (src.zip) missing on Mac OSX Java 1.4.1 installation? Greg Johnson Java 4 09-18-2003 07:21 AM



Advertisments