4 ms·
The first thing a 5 MB upx-compressed binary does when executed is uncompress itself to 15~30 MB of memory, right? So what does the on-disk binary size have to
by liftm 5y ago
The first thing a 5 MB upx-compressed binary does when executed is uncompress itself to 15~30 MB of memory, right? So what does the on-disk binary size have to do with my L3 cache?
- kimixa 5y agoYup, upx is just a loading stub that decompresses the whole thing then gets out the way. If anything it'll use more memory from the remains of the decompression stub and not being able to be clever about only reading from the backing file needed memory pages.
- mperham 5y agoUncompressed is less than 10MB.
- morelisp 5y agoSo instead of 10MB you're paying 15MB? Seems like UPX is an unnecessary dependency.