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/bind: speed up build times #13163

Closed
scisci opened this issue Nov 5, 2015 · 7 comments
Closed

x/mobile/bind: speed up build times #13163

scisci opened this issue Nov 5, 2015 · 7 comments

Comments

@scisci
Copy link

scisci commented Nov 5, 2015

I'm building a fairly large library for ios which is working great. Its about 20MB for each architecture.

However, the build times are really starting to take their toll. They are now taking around 5 minutes to build which is tough for productivity. It would be great to be able to speed up these time by perhaps caching some of the build data.

I'm not sure of the process but it seems for every build, bind generates a new random temporary folder for all the files, where perhaps, it could use a cached folder and reuse previously built object files?

@hyangah
Copy link
Contributor

hyangah commented Nov 5, 2015

does it make any difference if you use -i option?
the -i option will not help with objective-c code incremental build (similar hack may be necessary as described in android/java issue #12819), but for go code build it might.

/cc @crawshaw

@hyangah hyangah added this to the Unreleased milestone Nov 5, 2015
@rakyll
Copy link
Contributor

rakyll commented Nov 5, 2015

Should we mark this as a duplicate of #12819?

gomobile needs incremental builds. And it optimally needs to reuse aar or framework files, not just the output of the Go compilation.

@scisci
Copy link
Author

scisci commented Nov 6, 2015

Yep, didn't see that other issue.

@hyangah
Copy link
Contributor

hyangah commented Nov 6, 2015

Closing it. Duplicate of #12819. If you don't do -i option, please do so. Android Studio plugin uses -i option by default.

@hyangah hyangah closed this as completed Nov 6, 2015
@petejkim
Copy link

What is this -i option?

@crawshaw
Copy link
Member

@petejkim for details on asking questions please see https://golang.org/wiki/Questions. Old closed issues is not the place. (Also, look at the output of go help build.)

@petejkim
Copy link

@crawshaw Sorry about that. I just saw that the docs mention "The build flags -a, -i, -n, -x, -gcflags, -ldflags, -tags, and -work are shared with the build command. For documentation, see 'go help build'.".

@golang golang locked and limited conversation to collaborators Jul 29, 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

6 participants