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

Make "fast builds" config 40% faster on mac #312

Merged
merged 2 commits into from
Aug 24, 2020

Conversation

ashneverdawn
Copy link
Contributor

This uses https://github.com/michaeleisel/zld which makes incremental builds roughly 40% faster on mac.

@ashneverdawn ashneverdawn changed the title "fast builds" config 40% faster on mac Make "fast builds" config 40% faster on mac Aug 24, 2020
@lachlansneff
Copy link
Contributor

Woot woot!

@ashneverdawn
Copy link
Contributor Author

ashneverdawn commented Aug 24, 2020

After doing the math properly, it's more like 58% faster. (on one of my larger projects, 34s -> 24s on 2014 mac with 2.6 GHz Dual-Core Intel Core i5) 😄

@cart
Copy link
Member

cart commented Aug 24, 2020

This is a big win. Would you mind updating The Bevy Book setup guide too?

https://github.com/bevyengine/bevy-website/blob/master/content/learn/book/getting-started/setup/_index.md

@cart cart merged commit 986dd67 into bevyengine:master Aug 24, 2020
@ashneverdawn
Copy link
Contributor Author

@CleanCut
Copy link
Member

I must be doing something wrong. I tried replicating this exact config, but I see absolutely no difference in compile times: CleanCut/bevy_template#1

@karroffel karroffel added A-Build-System Related to build systems or continuous integration O-MacOS Specific to the MacOS (Apple) desktop operating system labels Aug 24, 2020
@stefee
Copy link
Contributor

stefee commented Aug 24, 2020

We should put out some sort of announcement on Discord for people on macOS to update their config file from the latest template.

@CleanCut
Copy link
Member

I still haven't been able to reproduce the speedup. 😢

@CleanCut
Copy link
Member

CleanCut commented Aug 24, 2020

Update: Thanks to @ashneverdawn's collaboration, I was able to confirm a 15% speedup in build time when using zld. For more details see CleanCut/bevy_template#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Build-System Related to build systems or continuous integration O-MacOS Specific to the MacOS (Apple) desktop operating system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants