-
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
Reduce the size of hir::Expr
.
#58258
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@bors try |
⌛ Trying commit fc75a4d62b37230ce6cb050952c19a8517d3cc67 with merge 387a2a54ba590de3ea8fadc38678835779598b9b... |
☀️ Test successful - checks-travis |
@rust-timer build 387a2a54ba590de3ea8fadc38678835779598b9b |
Success: Queued 387a2a54ba590de3ea8fadc38678835779598b9b with parent 825f355, comparison URL. |
Finished benchmarking try commit 387a2a54ba590de3ea8fadc38678835779598b9b |
Changes to instruction counts are negligible. Looks like the extra allocations required are balanced by whatever reductions in memory copying. However, the max-rss reductions are real -- e.g. I used DHAT on a "Check CleanIncr" build of |
Looks good. Thanks, @nnethercote! @bors r+ |
📌 Commit fc75a4d62b37230ce6cb050952c19a8517d3cc67 has been approved by |
☔ The latest upstream changes (presumably #58341) made this pull request unmergeable. Please resolve the merge conflicts. |
fc75a4d
to
b94ffe7
Compare
From 104 bytes to 72 bytes on x86-64. This slightly reduces instruction counts. Also add an assertion about the size.
b94ffe7
to
5d65e8c
Compare
@bors r=michaelwoerister |
📌 Commit 5d65e8c has been approved by |
…aelwoerister Reduce the size of `hir::Expr`. From 104 bytes to 72 bytes on x86-64. This slightly reduces instruction counts. Also add an assertion about the size.
…aelwoerister Reduce the size of `hir::Expr`. From 104 bytes to 72 bytes on x86-64. This slightly reduces instruction counts. Also add an assertion about the size.
Rollup of 8 pull requests Successful merges: - #57451 (suggestion-diagnostics: as_ref improve snippet) - #57856 (Convert old first edition links to current edition one) - #57992 (Update the future/task API) - #58258 (Reduce the size of `hir::Expr`.) - #58267 (Tweak "incompatible match arms" error) - #58296 (Hidden suggestion support) - #58301 (Enable comparing fat pointers) - #58308 (Extract block to insert an intrinsic into its own function) Failed merges: r? @ghost
From 104 bytes to 72 bytes on x86-64. This slightly reduces instruction
counts.
Also add an assertion about the size.