Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

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.



Hey. I'm not completely useless. I can be used as a bad example.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1066147]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (9)
As of 2017-11-22 15:30 GMT
Find Nodes?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:

    Results (326 votes). Check out past polls.