4 ms·
I originally thought go binaries we’re large. Turns out they can be quite small. https://joeldare.com/small-go-binaries https://joeldare.com/small-go-binaries
by codazoda 5y ago
I originally thought go binaries we’re large. Turns out they can be quite small.
https://joeldare.com/small-go-binaries https://joeldare.com/small-go-binaries
- synergy20 5y agoupx will take time/resource to unzip, which could be slow in some embedded systems. a helloworld go binary is about 8MB, a C is about 20KB(shared libraries), go binary size adds up really fast due to the fact most do not use shared libraries even when there are many go binaries in the system.
- zekica 5y agoUPX also prevents re-using pages when multiple instances of the executable are loaded in RAM which is bad on low end systems. The best solution would be to use BTRFS/ZFS with transparent compression (can use fast algorithms) or even SquashFS if you can deploy the entire app image mounted in a directory.
- SXX 5y agoZFS on low-end low-RAM system? You must be joking...
- codazoda 5y agoThe binary is 7.3MB before compressing. Still not too big.