tfausak / rattletrap

:car: Parse and generate Rocket League replays.
https://hackage.haskell.org/package/rattletrap
MIT License
147 stars 21 forks source link

Minify binary size with upx #239

Closed murlakatamenka closed 3 years ago

murlakatamenka commented 3 years ago

Hey, just a heads up that you can make rather large rattletrap binaries much smaller with upx (GitHub action).

For example, Linux binary with

upx --best --lzma rattletrap-11.0.1-ubuntu         

gets compressed from 22 MiB to 3 MiB

                       Ultimate Packer for eXecutables
                          Copyright (C) 1996 - 2020
UPX git-d7ba31+ Markus Oberhumer, Laszlo Molnar & John Reiser   Jan 23rd 2020

        File size         Ratio      Format      Name
   --------------------   ------   -----------   -----------
  23634520 ->   3256224   13.78%   linux/amd64   rattletrap-11.0.1-ubuntu      

Packed 1 file.
tfausak commented 3 years ago

Does it matter how big the executable itself is? If not, I could compress the executables when I upload them to the release. I should probably do that regardless.

murlakatamenka commented 3 years ago

I think it's useful in general:

Since it comes with virtually no drawbacks, then why not?