Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: Fastest way to copy a file from 1 direcotry to another directory

by igelkott (Priest)
on Mar 29, 2008 at 11:10 UTC ( [id://677206]=note: print w/replies, xml ) Need Help??


in reply to Fastest way to copy a file from 1 direcotry to another directory

Copying a reasonable number of reasonably-sized files should be fast enough by any reasonable method. A bit vague perhaps but the differences are probably too small to measure dependably.

If the files are really big or you have many smaller files, the methods can be compared with Benchmark. Benchmark is normally used to perform many, many repetitions of the same operations in order to gather meaningful statistics. Running many file copy operations could seriously thrash your disk so I wouldn't run any more than a few reps. If that's not enough for to gather stats, you've got your answer (ie, doesn't matter).

Update: This assumes that the folders are on the same computer. Network issues may suggest other methods like tar.

  • Comment on Re: Fastest way to copy a file from 1 direcotry to another directory
  • Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://677206]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2024-04-25 21:27 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found