Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

Reduce compilation time #9055

Closed
friedbunny opened this issue May 19, 2017 · 3 comments
Closed

Reduce compilation time #9055

friedbunny opened this issue May 19, 2017 · 3 comments
Labels
build Core The cross-platform C++ core, aka mbgl

Comments

@friedbunny
Copy link
Contributor

We should investigate ways to reduce compilation times.

Anecdotally, compilation time has been steadily creeping up — it currently takes ~10 minutes for a clean iOS debug build in Xcode to complete on my MacBook Pro (Retina, 13-inch, Early 2015, 3.1 Ghz). This is quite long and negatively affects productivity.

Breakdown by target, in the order they’re built when running ios-app:

🎯
mbgl-core 7 minutes
dynamic 2 minutes
ios-app 1 minute

/cc @mapbox/gl

@friedbunny friedbunny added build Core The cross-platform C++ core, aka mbgl labels May 19, 2017
@1ec5
Copy link
Contributor

1ec5 commented May 19, 2017

If you see any opportunities to replace Objective-C++ files with pure Objective-C files in the dynamic target, we should look into doing so. Objective-C++ is known to be slow to compile due to those pluses.

@friedbunny
Copy link
Contributor Author

friedbunny commented Jul 15, 2017

This has been and is being addressed in several places:

@friedbunny
Copy link
Contributor Author

I think we’re in a decent place with ccache and other incremental improvements — nothing actionable left here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
build Core The cross-platform C++ core, aka mbgl
Projects
None yet
Development

No branches or pull requests

2 participants