Skip to content
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

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

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

Comments

Projects
None yet
5 participants
@AlmogBaku
Copy link

commented Feb 22, 2016

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

This comment has been minimized.

Copy link
Contributor

commented Feb 22, 2016

I think this is a dup of #6853

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

@rakyll

This comment has been minimized.

Copy link
Member

commented Feb 22, 2016

@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

This comment has been minimized.

Copy link
Contributor

commented Feb 22, 2016

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.

@crawshaw crawshaw closed this Feb 22, 2016

@AlmogBaku

This comment has been minimized.

Copy link
Author

commented Feb 22, 2016

@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.
You can’t perform that action at this time.