Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion: using UPX to pack binaries #379

Closed
mathieu-aubin opened this issue Dec 13, 2023 · 2 comments
Closed

Suggestion: using UPX to pack binaries #379

mathieu-aubin opened this issue Dec 13, 2023 · 2 comments

Comments

@mathieu-aubin
Copy link
Contributor

using UPX greatly reduces filesizes, without issues so far (at least with ffprobe and the few months i've been trying...)
upx -v --ultra-brute --preserve-build-id --best --8086 --8mib-ram ffprobe
is the command i use.

97573416 ->  25757873   26.40%   linux/amd64   ffprobe
Packed 1 file.

as per this asciicast

feel free to discard

@wader
Copy link
Owner

wader commented Dec 14, 2023

Hey, quiet impressive yes :) the image currently for 6.1 is ~70MB per architecture it seems, so i guess ffprobe is roughly about 35MB compressed at the moment, quite a difference still.

Do you know if it affects start up time better/worse? searched a bit about issues using it, and i guess the most undesirable effect seems to be that multiple processes will not be able to share file mapped pages any more.

Hmm i'm still a bit reluctant because of things like that, the rule of least surprise :) I guess one way would be to have a -upx variant of the image if ppl are concerned about size, but then again if i was concerned about size i would probably build a custom image with lots of features and libraries disabled. Maybe something like #216 could be helpful for that?

btw is download size or size on disk the most concern?

@wader
Copy link
Owner

wader commented Mar 27, 2024

Some spring cleaning and not sure this will happen

@wader wader closed this as completed Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants