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

Size of static libs? #11

Open
jbenet opened this issue Sep 27, 2015 · 4 comments
Open

Size of static libs? #11

jbenet opened this issue Sep 27, 2015 · 4 comments

Comments

@jbenet
Copy link

jbenet commented Sep 27, 2015

Why are the static libs so large?

4.7M    lib/darwin_amd64/libcrypto.a
16M     lib/darwin_amd64/libgoquic.a
2.0M    lib/darwin_amd64/libprotobuf.a
59M     lib/darwin_amd64/libquic.a
1.6M    lib/darwin_amd64/libssl.a
5.5M    lib/linux_amd64/libcrypto.a
7.9M    lib/linux_amd64/libgoquic.a
2.4M    lib/linux_amd64/libprotobuf.a
52M     lib/linux_amd64/libquic.a
1.9M    lib/linux_amd64/libssl.a
@jbenet
Copy link
Author

jbenet commented Sep 27, 2015

this means a bin wishing to bundle this lib would gain 70-80MB in size-- this is enormous and not likely the product of raw symbols. perhaps these libs have all the debugging symbols in and could be much reduced for production?

@serialx
Copy link
Contributor

serialx commented Sep 30, 2015

Yes, it is because of the debug symbols. You can always strip them out in the build script if you want.

@l2dy
Copy link
Contributor

l2dy commented Dec 31, 2015

This is making the repository large. Maybe you should try Git LFS?

@gripedthumbtacks
Copy link

Yeah, I cloned the repo and realized in total it was about 1GB?!?! ;) Git LFS or release builds for the win. Or remove the binaries from being checked in via git ignore. @serialx To fix it, add this file at the root:

.gitignore

with contents:
*.a

Or just exclude the directories you know will always have large files...

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

4 participants