-
Notifications
You must be signed in to change notification settings - Fork 15
Speed up compilation by 23% #49
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
Conversation
Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. That speeds up compilation by 23%. Before: $ hyperfine --prepare 'cargo clean' 'cargo build' Benchmark 1: cargo build Time (mean ± σ): 4.979 s ± 0.044 s [User: 4.887 s, System: 0.714 s] Range (min … max): 4.915 s … 5.068 s 10 runs After: $ hyperfine --prepare 'cargo clean' 'cargo build' Benchmark 1: cargo build Time (mean ± σ): 3.821 s ± 0.065 s [User: 5.083 s, System: 0.740 s] Range (min … max): 3.749 s … 3.955 s 10 runs
Thanks! |
This will get blown away the next time Also, we should use triagebot to add a comment for all PR's that touch |
Thanks. For the record, there used to be a version mismatch problem to do this split up, but that was fixed over a year ago. |
…umeGomez rustdoc-json-type: Depend on `serde` and `serde_derive` seperately Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. This speeds up compilation for users depending on rustdoc-json-types out of tree. Imports: rust-lang/rustdoc-types#49 CC `@Enselic` r? `@GuillaumeGomez`
…umeGomez rustdoc-json-type: Depend on `serde` and `serde_derive` seperately Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. This speeds up compilation for users depending on rustdoc-json-types out of tree. Imports: rust-lang/rustdoc-types#49 CC ``@Enselic`` r? ``@GuillaumeGomez``
Rollup merge of #141989 - aDotInTheVoid:sin-sooner, r=GuillaumeGomez rustdoc-json-type: Depend on `serde` and `serde_derive` seperately Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. This speeds up compilation for users depending on rustdoc-json-types out of tree. Imports: rust-lang/rustdoc-types#49 CC ``@Enselic`` r? ``@GuillaumeGomez``
Published as d7f859a (0.46.1), which also specifies that we need serde to be at least 1.0.186 |
rustdoc-json-type: Depend on `serde` and `serde_derive` seperately Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. This speeds up compilation for users depending on rustdoc-json-types out of tree. Imports: rust-lang/rustdoc-types#49 CC ``@Enselic`` r? ``@GuillaumeGomez``
Before this commit, serde_derive is built before serde. But serde does not depend on serde_derive, so that is not needed. Instead, build serde and serde_derive in parallel. That speeds up compilation by 23%.
Before:
After: