perf: Do not reevaluate goals on the changes on the very opaques registered by them - #162166
perf: Do not reevaluate goals on the changes on the very opaques registered by them#162166ShoyuVanilla wants to merge 1 commit into
Conversation
This comment has been minimized.
This comment has been minimized.
8b0c378 to
370476a
Compare
|
@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: Do not reevaluate goals on the changes on the very opaques registered by them
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (b6ebf68): comparison URL. Overall result: ✅ improvements - no action neededBenchmarking means the PR may be perf-sensitive. It's automatically marked not fit for rolling up. Overriding is possible but disadvised: it risks changing compiler perf. @bors rollup=never rustc-perf 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.1%, secondary 1.8%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -3.4%, secondary -3.8%)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: 472.928s -> 474.036s (0.23%) |
Originally written by @cynecx in rust-lang/rust-analyzer#23217 (comment)
Currently we track
StalledOnOpaqueswith the number of opaques when we started to evaluate the goal.This is correct and safe, but it makes the goals normalizes opaques, either by their own or their nested goals, to be evaluated once again b/c the
num_opaques_in_storageis changed by themselves.I think tracking the
num_opaques_in_storagefrom the point we finished to evaluate the goal make sense, because..Projectiongoals for opaques, and they are surely unaffected by skipping reevaluation.