Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re^4: Perl script compressor

by afoken (Canon)
on Dec 08, 2019 at 20:49 UTC ( #11109853=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl script compressor
in thread Perl script compressor

If you run your program on itself ... you get

FILE SIZE : 8688 bytes SHRUNK SIZE : 4021 bytes
If you run perltidy on your program the result is 3,701 bytes.

And if you use state of the art compression algorithms, you get even smaller files, without ANY loss of information:

/tmp>gzip -9 < > /tmp>bzip2 -9 < > /tmp>lzma -9 < > /tmp>dir 11* -rw-r--r-- 1 alex users 8690 Dec 8 21:45 -rw-r--r-- 1 alex users 3125 Dec 8 21:46 -rw-r--r-- 1 alex users 3160 Dec 8 21:46 -rw-r--r-- 1 alex users 3064 Dec 8 21:46 /tmp>


Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (8)
As of 2020-05-29 14:25 GMT
Find Nodes?
    Voting Booth?
    If programming languages were movie genres, Perl would be:

    Results (169 votes). Check out past polls.