-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
rustc_span: Optimize syntax context updates in spans #125017
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
rustc_span: Optimize syntax context updates in spans By updating inline contexts in place, without touching span interner, when possible. TODO: Run benchmarks and cleanup code if the results are good.
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (dcefc53): comparison URL. Overall result: ❌✅ regressions and improvements - 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. Next Steps: If you can justify the regressions found in this try perf run, please indicate this with @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 sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 673.271s -> 673.179s (-0.01%) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A question regarding the significance of a u32::MAX
SyntaxContext
, but otherwise looks good to me.
I still need to clean up the code and factor out the common part from |
I've found an issue - the old logic may turn a partially-interned format into an inline-parent format on ctxt update (when ctxt is updated to zero), but the new logic doesn't reproduce that behavior. UPD: This issue is fixed in the last update. |
This comment has been minimized.
This comment has been minimized.
rustc_span: Add conveniences for working with span formats Also - Centralize span ctxt updates in `Span::update_ctxt` - Stop requiring inline and interned ctxts in partially interned format to be synchronized. This is the refactoring part of rust-lang#125017.
rustc_span: Add conveniences for working with span formats Also - Centralize span ctxt updates in `Span::update_ctxt` - Stop requiring inline and interned ctxts in partially interned format to be synchronized. This is the refactoring part of rust-lang#125017.
rustc_span: Add conveniences for working with span formats Also - Centralize span ctxt updates in `Span::update_ctxt` - Stop requiring inline and interned ctxts in partially interned format to be synchronized. This is the refactoring part of rust-lang#125017.
The job Click to see the possible cause of the failure (guessed by this bot)
|
@bors retry |
☀️ Test successful - checks-actions |
Finished benchmarking commit (a316785): comparison URL. Overall result: ❌✅ regressions and improvements - ACTION NEEDEDNext Steps: If you can justify the regressions found in this perf run, please indicate this with @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)Results (primary -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 (primary -1.8%, secondary -4.9%)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: 672.142s -> 675.838s (0.55%) |
Nice win across the board, wins outweigh the losses. @rustbot label: +perf-regression-triaged |
rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
…rister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
…rister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
…rister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
…rister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
…rister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
Rollup merge of rust-lang#125829 - petrochenkov:upctxt2, r=michaelwoerister rustc_span: Add conveniences for working with span formats This is the refactoring part of rust-lang#125017.
rustc_span: Optimize more hygiene operations using `Span::map_ctxt` I missed these in rust-lang#125017.
rustc_span: Optimize span parent get/set methods Like rust-lang#125017, but for span parents. r? `@cjgillot`
rustc_span: Optimize more hygiene operations using `Span::map_ctxt` I missed these in rust-lang#125017.
rustc_span: Optimize more hygiene operations using `Span::map_ctxt` I missed these in rust-lang#125017.
rustc_span: Optimize more hygiene operations using `Span::map_ctxt` I missed these in rust-lang/rust#125017.
rustc_span: Optimize span parent get/set methods Like rust-lang#125017, but for span parents. r? `@cjgillot`
rustc_span: Optimize span parent get/set methods Like rust-lang/rust#125017, but for span parents. r? `@cjgillot`
By updating inline contexts in place, without touching span interner, when possible.