-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Shrink thir::Expr
#100944
Shrink thir::Expr
#100944
Conversation
The macro already generates other stuff, might as well generate these index types as well.
This shrinks several large variants of `ExprKind`.
Local measurements show this reduces peak memory usage for I took a mixture of strategies here. For |
Like expressions, statements, and match arms. This shrinks `thir::Stmt` and is a precursor to further shrinking `thir::Expr`.
This shrinks `thir::Expr`.
This shrinks `thir::Expr`.
This matches the naming scheme used elsewhere, e.g. in the AST, and avoids name clashes with the `ExprKind::Closure` variant.
This comment has been minimized.
This comment has been minimized.
17047f1
to
5a41eb8
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 5a41eb8 with merge 0bdca9b6274dd9a790450bd2a0be8979dd91690a... |
☀️ Try build successful - checks-actions |
Queued 0bdca9b6274dd9a790450bd2a0be8979dd91690a with parent 25ea5a3, future comparison URL. |
Finished benchmarking commit (0bdca9b6274dd9a790450bd2a0be8979dd91690a): 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)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.
Footnotes |
Perf results look good: we see the expected max-rss improvements for |
@bors r+ |
☀️ Test successful - checks-actions |
Finished benchmarking commit (8a13871): 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)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.
Footnotes |
r? @cjgillot