-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Skip running all lints if --cap-lints allow is used #114026
Conversation
They won't be able to emit any warnings or errors anyway.
r? @eholk (rustbot has picked a reviewer for you, use r? to override) |
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit db97f09 with merge 30b22310fe398f1c51ae455ed5fa45eac79c2f38... |
This will not break something like first setting all lints to allow to then setting one particular lint to warn to only have findings of that particular lint, right? |
No, this only affects Edit: I think something like |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
I also went down a similar route recently (including only doing the optimization when no Let me know if my analysis was incorrect at the time.
Some lints are required to be emitted even on dependencies, independently of In the end, the time save was also very small, in addition to only being applicable when building deps, so I didn't pursue this much further. IIRC only a small number of rustc-perf benchmarks had dependencies with "significant" linting time (I can find that data if you want), and it was at best a few hundred ms save in an otherwise slow multi-second builds. IIUC this experiment is also changing the default to get something out of a perf run, otherwise no |
Right, didn't think of that.
Eyeballing
Correct. This change won't help with most incremental rebuilds, but it should help with from scratch builds. |
I actually wonder if e.g. for binary benchmarks, we profile only the final/leaf bin crate, or if we also profile its (local) crate dependencies in the same workspace that it depends on 🤔 |
Finished benchmarking commit (30b22310fe398f1c51ae455ed5fa45eac79c2f38): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. While you can manually mark this PR as fit for rollup, we strongly recommend not doing so since this PR may lead to changes in compiler perf. @bors rollup=never Instruction countThis is a highly reliable metric that was used to determine the overall result at the top of this comment.
Max RSS (memory usage)ResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
CyclesResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Binary sizeResultsThis is a less reliable metric that may be of interest but was not used to determine the overall result at the top of this comment.
Bootstrap: 653.19s -> 647.282s (-0.90%) |
I think this may have removed more work than expected: possibly the need to typeck some items via the unused items lints, and CTFE allocation validation which is confusingly triggered by a lint. But maybe you wanted to focus at bootstrap times for crates depending on libcore ? |
I think @rustbot author |
I don't intent on working on this again in the near future. |
They won't be able to emit any warnings or errors anyway.
cc #74704 and #106983