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

Are two separate binaries necessary? #16

Open
tomalok opened this issue Jul 23, 2020 · 1 comment
Open

Are two separate binaries necessary? #16

tomalok opened this issue Jul 23, 2020 · 1 comment

Comments

@tomalok
Copy link
Contributor

tomalok commented Jul 23, 2020

Would there any significant space savings if log_proxy and log_proxy_wrapper were the same binary, but recognized by what name they were executed and acted accordingly?

Take busybox as an example. Lots of individual utilities sharing a lot of common code, a lot of hard links to one binary.

@thefab
Copy link
Member

thefab commented Jul 27, 2020

interesting idea!

with a static build, it would save between 1 and 2 MB
but with a dynamic build, it would save between 20 and 30 KB

as the most of "space" is taken by dependencies (see #14)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants