Skip to content

x/mobile: binary weight too much for mobile #14465

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

Closed
AlmogBaku opened this issue Feb 22, 2016 · 4 comments
Closed

x/mobile: binary weight too much for mobile #14465

AlmogBaku opened this issue Feb 22, 2016 · 4 comments

Comments

@AlmogBaku
Copy link

Since the compiled file is statically linked, the binary weight too much (simple SDK script 6mb).
In mobile applications the size of an SDK/application have a very big impact.

@Thomasdezeeuw
Copy link
Contributor

I think this is a dup of #6853

@rakyll rakyll added this to the Unreleased milestone Feb 22, 2016
@rakyll
Copy link
Contributor

rakyll commented Feb 22, 2016

/cc @crawshaw @hyangah

@rakyll rakyll changed the title x/mobile: Binary weight too much for mobile x/mobile: binary weight too much for mobile Feb 22, 2016
@crawshaw
Copy link
Member

Yes, this is a dup of #6853.

Note also that 1. the .apk produced by gomobile contains several different architectures which can be broken up for smaller distribution sizes to each type of phone, and 2. you can compile with -ldflags=-s to remove the symbol table and DWARF info, making the binary smaller.

@AlmogBaku
Copy link
Author

@crawshaw I compiled using -s flag, but it didn't help much. 6mb for a simple SDK that uses HTTP is way too much for embedding in apps.

In my case- I had no choice but implementing it on swift/java.. but in the future reducing it(to around 1mb) might help

@golang golang locked and limited conversation to collaborators Feb 28, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

5 participants