Skip to content
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

#94421 (replace RawVec with Boxed slice) plus soundness fixes #96607

Closed
wants to merge 1 commit into from

Conversation

saethlin
Copy link
Member

@saethlin saethlin commented May 1, 2022

r? @ghost

@rustbot rustbot added the T-libs Relevant to the library team, which will review and decide on the PR/issue. label May 1, 2022
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented May 4, 2022

☔ The latest upstream changes (presumably #94775) made this pull request unmergeable. Please resolve the merge conflicts.

@bors bors added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label May 4, 2022
@saethlin saethlin changed the title ICE with miri-test-libstd when trying to improve on #94421 #94421 (replace RawVec with Boxed slice) plus soundness fixes May 12, 2022
@saethlin

This comment was marked as outdated.

@saethlin saethlin force-pushed the vec-box branch 2 times, most recently from 4425047 to f171caf Compare May 18, 2022 21:37
@rust-log-analyzer

This comment has been minimized.

@bors
Copy link
Contributor

bors commented May 21, 2022

☔ The latest upstream changes (presumably #96605) made this pull request unmergeable. Please resolve the merge conflicts.

@rust-log-analyzer

This comment has been minimized.

@saethlin saethlin force-pushed the vec-box branch 2 times, most recently from 16e23f9 to d0c8e53 Compare July 21, 2022 00:27
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

Fix soundness problems/make miri-test-libstd pass

Co-authored-by: Conrad Ludgate <[email protected]>
@thomcc
Copy link
Member

thomcc commented Jul 27, 2022

@bors try @rust-timer queue

@rust-timer
Copy link
Collaborator

Awaiting bors try build completion.

@rustbot label: +S-waiting-on-perf

@rustbot rustbot added the S-waiting-on-perf Status: Waiting on a perf run to be completed. label Jul 27, 2022
@bors
Copy link
Contributor

bors commented Jul 27, 2022

⌛ Trying commit 2efcdf8 with merge 5ea78121020f716d5359adbefb0abbfb2f885e4c...

@bors
Copy link
Contributor

bors commented Jul 27, 2022

☀️ Try build successful - checks-actions
Build commit: 5ea78121020f716d5359adbefb0abbfb2f885e4c (5ea78121020f716d5359adbefb0abbfb2f885e4c)

@rust-timer
Copy link
Collaborator

Queued 5ea78121020f716d5359adbefb0abbfb2f885e4c with parent 4d6d601, future comparison URL.

@rust-timer
Copy link
Collaborator

Finished benchmarking commit (5ea78121020f716d5359adbefb0abbfb2f885e4c): comparison url.

Instruction count

  • Primary benchmarks: mixed results
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
1.5% 5.9% 77
Regressions 😿
(secondary)
2.0% 14.0% 28
Improvements 🎉
(primary)
-0.5% -1.3% 26
Improvements 🎉
(secondary)
-0.7% -5.6% 31
All 😿🎉 (primary) 1.0% 5.9% 103

Max RSS (memory usage)

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
2.4% 6.9% 54
Regressions 😿
(secondary)
3.0% 5.6% 7
Improvements 🎉
(primary)
-5.7% -7.0% 3
Improvements 🎉
(secondary)
-3.0% -3.9% 3
All 😿🎉 (primary) 1.9% -7.0% 57

Cycles

Results
  • Primary benchmarks: mixed results
  • Secondary benchmarks: mixed results
mean1 max count2
Regressions 😿
(primary)
3.6% 7.4% 23
Regressions 😿
(secondary)
3.9% 15.8% 19
Improvements 🎉
(primary)
-4.8% -6.6% 2
Improvements 🎉
(secondary)
-4.2% -4.2% 1
All 😿🎉 (primary) 2.9% 7.4% 25

If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf.

Benchmarking 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 @rustbot label: +perf-regression-triaged along with sufficient written justification. If you cannot justify the regressions please fix the regressions and do another perf run. If the next run shows neutral or positive results, the label will be automatically removed.

@bors rollup=never
@rustbot label: +S-waiting-on-review -S-waiting-on-perf +perf-regression

Footnotes

  1. the arithmetic mean of the percent change 2 3

  2. number of relevant changes 2 3

@rustbot rustbot added perf-regression Performance regression. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-perf Status: Waiting on a perf run to be completed. labels Jul 27, 2022
@saethlin
Copy link
Member Author

I'm closing this, as I've become convinced that this introduces unfixable performance regressions because the Deref impl on Vec can't be free if its layout is changed.

@saethlin saethlin closed this Sep 17, 2022
@saethlin saethlin deleted the vec-box branch September 21, 2022 03:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
perf-regression Performance regression. S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-libs Relevant to the library team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants