Skip to content

Library Size #32

Closed
Closed

Description

@benjchristensen

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

  1. lehecka commented on May 25, 2016

    @lehecka
    Contributor

    did we enable linker to exclude unused symbols like unused global variables?

  2. lehecka commented on Jan 26, 2017

    @lehecka
    Contributor

    we are down to 250k
    We can remove the rest of template code with some refactoring and get to even smaller size.

  3. benjchristensen commented on Jan 26, 2017

    @benjchristensen
    ContributorAuthor

    Excellent news, thank you Ondrej for the update and work to get to this point.

  4. yschimke commented on Feb 1, 2017

    @yschimke
    Member

    Can we close this now?

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions