Reducing git size by building libgit.so
- From
- Elmar Pruesse <p@ucdenver.edu>
- Date
- Jun 11, 2019, 19:52 UTC
- Message-ID
- <21f1f334-755e-3283-d0da-ec0ab9231cfc@ucdenver.edu>
Hi!
The total compiled size of libexec/git-core is currently somewhere around 30 MB. This is largely due to a number of binaries linking statically against libgit.a. For some folks, every byte counts. I meddled with the Makefile briefly to make it build and use a libgit.so instead, which dropped package size down to 5MB.
Are there, beyond the ~20 ms in extra startup time and the slightly bigger hassle with DSO locations, reasons for the choice to link statically?
best,
Elmar