I discovered UPX this weekend and I'm kind of mindblown by how effective it is.

I'm seeing 30-40% reduction in the size my Rust binaries.

Is there some downside here that I'm not seeing?

· · Web · 1 · 0 · 2

@glyph it's just compression. guess the downside is slower startup of binaries if they're going to be launched a ton, like a shell utility or something, but it's a really simple compression algo and the decompression overhead is pretty irrelevant


yeah that's what i thought too; decompression overhead is basically negligible (especially in my intended use-cases).

stoked to have found such a simple way make binaries smaller :)

@glyph @syntacticsugarglider If the compression is built into the file system instead then you can probably rely on the kernel's file cache.

@glyph @syntacticsugarglider downside is binary changes can break things, like a version of macOS made existing binaries break one time, and there’s antivirus on windows which can assume a little much about compressed binaries and get your binaries flagged and denied

Sign in to participate in the conversation

Revel in the marvels of the universe. We are a collective of forward-thinking individuals who strive to better ourselves and our surroundings through constant creation. We express ourselves through music, art, games, and writing. We also put great value in play. A warm welcome to any like-minded people who feel these ideals resonate with them.