4 ms·
I just compressed the 1.6MB cgo application into 400kB using standard Mac OS X zip. A few other applications I tried compressed similarly well.
by houseabsolute 17y ago
I just compressed the 1.6MB cgo application into 400kB using standard Mac OS X zip. A few other applications I tried compressed similarly well.
- jbellis 17y agostandard zip is far more cpu intensive than anything you could afford to run on something where you (a) have very limited cpu resources and (b) need to add very very little latency.
- houseabsolute 17y agotar+gzip performed similarly well (1.6MB -> 450kB) and is a lot faster than normal zip. GZip was similarly able to compress my Mac's System folder from four gigabytes to two. Anyway, the point stands that executable files are quite compressible. If you'd like me to try it with an algorithm you consider more appropriate, please direct me to the download page.