-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Drop array patterns using subslices #109008
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
Conversation
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit fb7275c5f1fd470a7bb97cbac0a71224b280fad7 with merge f6318045f80c3b6b7cee0b1c420dd1a84ce61091... |
Also this will eventually need a UI test :) |
💔 Test failed - checks-actions |
fb7275c
to
f9e457f
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit f9e457ff59cdd3daef958fcac7e0dfefb3eb3051 with merge 8633c7b8d24f7723cc99e11b7a9707871935a2b6... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (8633c7b8d24f7723cc99e11b7a9707871935a2b6): 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.
CyclesThis benchmark run did not return any relevant results for this metric. |
This now fixes the case from the example, but still blows up memory when the huge array is partially moved from. |
I'm happy to r+ this with a detailed comment, both explaining what the double iteration is doing and where it falls short, and a UI test. |
f9e457f
to
8c74c5e
Compare
Added a test and explanation, but I'll try and investigate a better solution for this |
This comment has been minimized.
This comment has been minimized.
Found a new approach that seems to work, passing relevant drop tests locally and fixes both dropping large arrays and moving out of them.
I'll squash + update PR desc if this looks good @rustbot ready |
⌛ Testing commit ce2d528 with merge f71b58d5b418fbf1b5156d833b464bb60470d38b... |
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
@bors retry failed to connect to github.com |
⌛ Testing commit ce2d528 with merge 9482c66f424c8c22af3c6dab3afa7af5fd870e44... |
💔 Test failed - checks-actions |
@bors retry failed during checkout |
☀️ Test successful - checks-actions |
1 similar comment
☀️ Test successful - checks-actions |
Finished benchmarking commit (a5a690c): 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.
|
Fixes #109004
Drops contiguous subslices of an array when moving elements out with a pattern, which improves perf for large arrays
r? @compiler-errors