Stop sorting via `DefId`s in region resolution by oli-obk · Pull Request #122824...
source link: https://github.com/rust-lang/rust/pull/122824
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Stop sorting via DefId
s in region resolution
#122824
Conversation
Contributor
Author
added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
labels
This comment has been minimized.
added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
@@ -139,8 +139,8 @@ impl<'cx, 'tcx> LexicalResolver<'cx, 'tcx> { | ||
let mut var_data = self.construct_var_data(); |
||
// Deduplicating constraints is shown to have a positive perf impact. |
||
self.data.constraints.sort_by_key(|(constraint, _)| *constraint); |
Would you mind using an UnordSet here? It is a drop-in replacement in this case but guards against accidentally relying on its iteration order.
Contributor
Author
doesn't that have the same insertion issues as #118824 (comment) (expensive to insert)
Contributor
Author
or do you mean for the dedup set? sure, that doesn't matter
Yeah, I meant the seen
set. The comment ended up in an ambiguous place 🙂
Contributor
☀️ Try build successful - checks-actions |
This comment has been minimized.
r=me if performance isn't impacted too much. |
Collaborator
Finished benchmarking commit (fe2490b): 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)Results CyclesResults Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 672.146s -> 670.816s (-0.20%) |
removed the S-waiting-on-perf Status: Waiting on a perf run to be completed. label
Contributor
Author
@bors r=estebank,michaelwoerister |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
labels
Contributor
Author
@bors r- gotta fix the |
added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
labels
Contributor
Author
@bors rollup, all the perf changes are the same amplitude as the frequent perf changes recently, so it's just noise |
Contributor
Author
@bors r=estebank,michaelwoerister |
added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
labels
Contributor
☀️ Test successful - checks-actions |
Collaborator
Finished benchmarking commit (eb80be2): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression 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)This benchmark run did not return any relevant results for this metric. CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 669.214s -> 669.305s (0.01%) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Successfully merging this pull request may close these issues.
None yet
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK