-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Stop cloning Context
so much
#133345
Stop cloning Context
so much
#133345
Conversation
Also very curious about the perf impact. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
… r=<try> Stop cloning `Context` so much This is a first step for rust-lang#82381. It's already big enough so I'll continue in a follow-up once this PR is merged. Next step will be to get rid of `SharedContext` by inlining it directly into `Context`. cc `@camelid` r? `@notriddle`
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (3a9444a): comparison URL. Overall result: ❌ regressions - please read the text belowBenchmarking 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -2.9%, secondary 3.1%)This 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.
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: 794.896s -> 795.389s (0.06%) |
Interesting. Didn't expect the result to be this bad... |
Let's see how it goes with this change. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
… r=<try> Stop cloning `Context` so much This is a first step for rust-lang#82381. It's already big enough so I'll continue in a follow-up once this PR is merged. Next step will be to get rid of `SharedContext` by inlining it directly into `Context`. cc `@camelid` r? `@notriddle`
This comment has been minimized.
This comment has been minimized.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (b1e9070): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @bors rollup=never Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -3.3%, secondary -1.7%)This 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.
CyclesResults (secondary 10.2%)This 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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 796.567s -> 794.663s (-0.24%) |
3c3218d
to
74d6adf
Compare
Now let's see when we clone the ID map instead of keeping both maps split. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
… r=<try> Stop cloning `Context` so much This is a first step for rust-lang#82381. It's already big enough so I'll continue in a follow-up once this PR is merged. Next step will be to get rid of `SharedContext` by inlining it directly into `Context`. cc `@camelid` r? `@notriddle`
That doesn't seem related to this PR. Gonna wait a bit before rebasing and re-r+ing it. |
… implementation
…tRenderer::make_child_renderer` into `save_module_data`
f6f4135
to
69ed026
Compare
Let's try again. @bors r=notriddle,aDotInTheVoid |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a522d78): comparison URL. Overall result: ✅ improvements - no action needed@rustbot label: -perf-regression Instruction countThis is the most reliable metric that we have; it was used to determine the overall result at the top of this comment. However, even this metric can sometimes exhibit noise.
Max RSS (memory usage)Results (primary -3.0%, secondary -3.2%)This 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.
CyclesResults (primary -1.7%, secondary -4.8%)This 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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 768.518s -> 768.623s (0.01%) |
…<try> Remove static HashSet for default IDs list Follow-up of rust-lang#133345. Let's see how it impacts performance. r? `@notriddle`
…r=notriddle Remove static HashSet for default IDs list Follow-up of rust-lang#133345. Let's see how it impacts performance. r? `@notriddle`
Rollup merge of rust-lang#133745 - GuillaumeGomez:default-ids-match, r=notriddle Remove static HashSet for default IDs list Follow-up of rust-lang#133345. Let's see how it impacts performance. r? `@notriddle`
…omez rustdoc: Rename `set_back_info` to `restore_module_data`. Follow-up to rust-lang#133345, r? `@GuillaumeGomez` Most of the references to `info` got removed as it was clear that `module_data` makes more sense here. Makes it clearer that `save_module_data` and `restore_module_data` are a pair.
Rollup merge of rust-lang#133764 - aDotInTheVoid:rename, r=GuillaumeGomez rustdoc: Rename `set_back_info` to `restore_module_data`. Follow-up to rust-lang#133345, r? `@GuillaumeGomez` Most of the references to `info` got removed as it was clear that `module_data` makes more sense here. Makes it clearer that `save_module_data` and `restore_module_data` are a pair.
This is a first step for #82381.
It's already big enough so I'll continue in a follow-up once this PR is merged. Next step will be to get rid of
SharedContext
by inlining it directly intoContext
.cc @camelid
r? @notriddle