Improve compilation time #188
josecelano
started this conversation in
Proposals
Replies: 2 comments
-
I think what @WarmBeer is doing here will help to make it faster. I think we could extract more independent packages, for example, the API, UDP, and HTTP clients used for testing the servers. They already are independent pieces of code, and we want intentionally to keep them decoupled from implementation details. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I did a test with one single test binary here, and this is the result: It's even slower! 🤔 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @da2ce7 @WarmBeer ,
It's starting to be annoying the time rust takes to compile.
On my laptop:
And I usually run tests frequently. What I'm doing is working on the next small change while I run tests.
I've found this interesting article with many suggestions:
Tips for Faster Rust Compile Times
If you run the
cargo build --timings --all-targets
command you'll see something like this:Compilation for integration tests is very slow. The article suggests using only one file. I do not even like the big files we have now, but maybe we could have one binary but multiple mods.
Anyway, I think we should spend some time improving it otherwise the development experience will not be enjoyable anymore. Besides, pipelines could also benefit from this improvement.
Beta Was this translation helpful? Give feedback.
All reactions