The current compiled size of `libReactiveSocket.a` is 1.6M: ``` 1.6M May 17 10:12 libReactiveSocket.a ``` The Java version is 185k and is feature complete: ``` 185K May 17 10:14 reactivesocket-0.1.1-SNAPSHOT.jar ``` Java currently has a dependency on a 200k library, but that can likely be reduced with some effort. So, reactivesocket-cpp is still not complete, and we are at 1.6M vs the complete Java impl being < 400k. Folly is > 50M for everything, so I'm assuming the static linking is just pulling from it what is needed (showing my lack of C++ experience): ``` -rwxr-xr-x 1 root wheel 5.9M Jan 11 02:15 /usr/local/lib/libfolly.57.dylib -rw-r--r-- 1 root wheel 68M Jan 11 02:15 /usr/local/lib/libfolly.a ``` Is this greater size expected for C++? Or is it something we can reduce by being more careful with our dependencies? I am exploring this due to desire to use this on mobile.
Activity
lehecka commentedon May 25, 2016
did we enable linker to exclude unused symbols like unused global variables?
lehecka commentedon Jan 26, 2017
we are down to 250k
We can remove the rest of template code with some refactoring and get to even smaller size.
benjchristensen commentedon Jan 26, 2017
Excellent news, thank you Ondrej for the update and work to get to this point.
yschimke commentedon Feb 1, 2017
Can we close this now?
getdeps optionally can get hg info from env var (rsocket#32)