Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

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

by taint (Chaplain)
on Dec 07, 2013 at 20:24 UTC ( #1066147=note: print w/ replies, xml ) Need Help??


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

My personal preferences, with regard commands already provided my the system. Is to compare the results to those provided by Perl modules, and the likes. I have personally found that in the case of (tar|gzip) tar, two things; 1.) a system call to tar is quicker (asuming your routine is efficient). 2.) LZMA, which may depend on your systems implementation, on average, provides a 30% better compression rate. In the second point; this won't necessarily speed up your process, except to the extent that unlinking them will be quicker. In case you're interested; my options given to tar are

tar -cvJ --options xz:9 -f <filename>.tar.xz <directory||filename>
You will probably not have a use for the v switch, except to the extent that it will help with "debugging" possible errors.

HTH

--Chris

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
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (11)
As of 2014-09-02 16:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite cookbook is:










    Results (25 votes), past polls