Remove has_delayed_lints optimization#158193
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
[Perf] Remove `has_delayed_lints` optimization
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (769fdb0): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. @rustbot label: -S-waiting-on-perf -perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 1.7%, secondary 1.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 482.01s -> 481.514s (-0.10%) |
has_delayed_lints optimizationhas_delayed_lints optimization
|
rustbot has assigned @nikomatsakis. Use Why was this reviewer chosen?The reviewer was selected based on:
|
This comment has been minimized.
This comment has been minimized.
d073f7d to
f72b866
Compare
| LL - #![no_mangle] | ||
| | | ||
|
|
||
| warning: unused attribute |
There was a problem hiding this comment.
All the stderr diffs are diagnostics getting re-ordered, because the iteration order might now be different. I don't think the order got necessarily better or worse
|
This looks nice. Wonder what made it less expensive hehe. r? me |
…nt, r=jdonszelmann Remove `has_delayed_lints` optimization Keeping track of `has_delayed_lints` doesn't seem to have a perf effect anymore so let's not make the code more complicated than needed. These flags were previously used so we don't have to iterate over all hir owners, but iterating over all hir owners seems fast enough cc @jdonszelmann
Rollup merge of #158193 - JonathanBrouwer:late-lint-experiment, r=jdonszelmann Remove `has_delayed_lints` optimization Keeping track of `has_delayed_lints` doesn't seem to have a perf effect anymore so let's not make the code more complicated than needed. These flags were previously used so we don't have to iterate over all hir owners, but iterating over all hir owners seems fast enough cc @jdonszelmann
…uwer Rollup of 4 pull requests Successful merges: - rust-lang/rust#155439 (Enable Cargo's new build-dir layout) - rust-lang/rust#157942 (Do not use desugared local names in tail_expr_drop_order diagnostics) - rust-lang/rust#158193 (Remove `has_delayed_lints` optimization) - rust-lang/rust#158204 (More general assert in Interner const fn check)
Keeping track of
has_delayed_lintsdoesn't seem to have a perf effect anymore so let's not make the code more complicated than needed. These flags were previously used so we don't have to iterate over all hir owners, but iterating over all hir owners seems fast enoughcc @jdonszelmann