Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Syntactic Confectionery Delight
 
PerlMonks  

Re: copy files based on name

by CountZero (Chancellor)
on Feb 27, 2013 at 17:01 UTC ( #1020926=note: print w/ replies, xml ) Need Help??


in reply to copy files based on name

If it works, it works. Don't repair it if it ain't broken.

But you question "the efficiency". Does it go too slow, does it consume too much system resources, ...?

The rsync process is usually a rather efficient process.

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics


Comment on Re: copy files based on name
Re^2: copy files based on name
by raggmopp (Novice) on Feb 27, 2013 at 18:06 UTC

    I would gauge the performance as OK, maybe even so-so or marginal. With a load on the system it does slow down even more.

    Agreed, rsync is usually the choice. I'm more concerned with the processing to place the files in their appropriate locations.

      Even if you found something faster than the substr function, the benefits will pale when comparing with the time rsync has taken.

      CountZero

      A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

      My blog: Imperial Deltronics

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (9)
As of 2014-04-19 10:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (480 votes), past polls