-
-
Notifications
You must be signed in to change notification settings - Fork 218
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
Any way to make the compilation/testing faster? #202
Comments
have you already tried using mold as a linker? it's a pretty safe way to speed up rust compilation but still has some issues on anything that's not linux iirc |
Yes, there are several ideas:
Also, once that's all done, we an have a look at the flamegraphs emitted by Bevy also has some ideas on build optimization, some might be applicable here. In general, one huge advantage that gdext has over other Rust projects is that the legwork is done by an external engine, which is dynamically linked -- so a lot of the problems are moved to the C++ side. |
Not actually, but I'm trying it right now and looks to be way faster. And yes, I'm on Linux. |
@juliohq out of curiosity, where exactly do you experience slowness? During incremental compilation, or just the initial one? |
During incremental ones and Also, commenting out those lines makes it [profile.dev.package.bindgen]
debug = 0
opt-level = 3
[profile.dev.package.nanoserde]
debug = 0
opt-level = 3
[profile.dev.package.quote]
debug = 0
opt-level = 3
[profile.dev.package.proc-macro2]
debug = 0
opt-level = 3
[profile.dev.package.venial]
debug = 0
opt-level = 3
[profile.dev.package.godot-codegen]
debug = 0
opt-level = 3 |
do you know what impact it has on incremental build times? |
2m 26s with |
Very interesting, thanks for the feedback. Might be worth removing the special handling of those crates. Seems like the faster runtime does not make up for the extra compilation time needed for release mode. Regarding |
I removed those lines and allow for pre-generated bindgen in #211. There are still more places to optimize, like |
@Bromeon sure, that has helped a lot though! |
Good to hear! 🙂 |
I'm sorry for opening this issue, I'm not sure if this is the correct way to discuss about this topic.
Right now the compilation process looks a bit slow. Do you think there's any way to speed it up somehow? Maybe avoiding useless recompilation?
The text was updated successfully, but these errors were encountered: