-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Speed up fast compiles config #433
Conversation
merge bevyengine/bevy -> ashneverdawn/bevy
Merge latest changes
Merge latest changes
Merge latest changes
This seems like a nice win, but do you know what we're losing here by dropping to level 1? The rust docs arent very descriptive. |
It makes a similar change as
It ends up generating much less debuginfo while still being fairly useful for general panics and surface level debugging. It may be worth leaving a comment in the config that if more debugging information is required to comment the setting out (or set it back to the default |
ah so this would probably make using the live-debugger experience a bit worse |
if the wins arent particularly measurable with lld, we could consider scoping this to macos only (where the difference is significant) |
Scoping it to macos sounds reasonable. The link time differences has been much less significant for me on linux and windows while using |
Yeah on linux the change for me is ~0.05 seconds, which is measurable but im not sure its worth a reduced debugger experience. |
If we can scope this to macos for now that would be great. |
Thanks for the feedback! |
Awesome awesome. Thanks |
optionally make "fast build" config 40% faster on mac by removing some debug info
On my late 2014 macbook, this makes my incremental builds take half as long. Mileage will vary depending on hardware and OS.
This speeds up compiles by reducing how much debug info is included to 'line tables only'
See: https://doc.rust-lang.org/nightly/cargo/reference/profiles.html#debug