goquic icon indicating copy to clipboard operation
goquic copied to clipboard

Size of static libs?

Open jbenet opened this issue 10 years ago • 4 comments

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 avatar Sep 27 '15 23:09 jbenet

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?

jbenet avatar Sep 27 '15 23:09 jbenet

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

serialx avatar Sep 30 '15 04:09 serialx

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

l2dy avatar Dec 31 '15 03:12 l2dy

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...

gripedthumbtacks avatar Mar 07 '16 12:03 gripedthumbtacks