Replies: 1 comment
-
Hmm, I'm not sold on the value of this (and one of the first google results I found agrees). Sure smaller binaries are nice but missing debug symbols is frustrating so I'd want to see some meaningful benefit to stripping that justifies losing that data. Notably, I don't see any performance win by stripping (on my machine the stripped binary is actually slightly slower, but that could be noise). It's easy enough to do so you're welcome to send a PR if you'd like, but I'll probably let it bake for a little while and see if anyone else weighs in before merging/declining it.
Well the primary difference would be less debugging data if you encounter a crash, so I wouldn't expect to find any issues with a stripped vs. non-stripped binary in typical usage. PS: you posted this under "Show and tell", I moved it to the "Ideas" category since it's not a demo / usage discussion. |
Beta Was this translation helpful? Give feedback.
-
Hi!
Is the debug info really needed in production? The static musl binary goes from
5.4Mb
to1.2Mb
. I've been using a stripped version myself and haven't found any issues yet. A lot of other binaries ships stripped, i.eJust some food for thought 🙂
Beta Was this translation helpful? Give feedback.
All reactions