Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: system "gzip $full_name" is taking more time

by taint (Chaplain)
on Dec 08, 2013 at 10:53 UTC ( #1066204=note: print w/replies, xml ) Need Help??

in reply to system "gzip $full_name" is taking more time

Something else occurred to me, after making my last response. That I think will help you greatly in more ways than one.

Consider "batching" the jobs/tasks. For example, concat a list of the files that will be processed; for tests for timing, and, more importantly, within your current script. You should end up with a much more efficient process, overall. This way, you can batch the tar command -- concat the file names, and dump the list on tar. The same goes for the rest. Slurping up a list should be pretty easy, and pretty quick. In short attempt to consolidate as much as possible.

Best wishes.


Hey. I'm not completely useless. I can be used as a bad example.
  • Comment on Re: system "gzip $full_name" is taking more time

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066204]
[davies]: LanX: No. The mayor of London would better be described as the transport commisar for London. S/h/it doesn't have a tenth of the power of La Sturgeon (and therefore does <10% of the damage).
[LanX]: xD ... complicated countrie(s)
LanX reigned by the Duke of Normandy

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (10)
As of 2017-12-15 18:19 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (440 votes). Check out past polls.