-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
optimize vec.extend(slice.to_vec()), take 2
#151337
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
Co-authored-by: Ralf Jung <post@ralfj.de>
|
rustbot has assigned @Mark-Simulacrum. Use |
vec.append(slice.to_vec()), take 2vec.extend(slice.to_vec()), take 2
|
Does it make sense to add an optimization that breaks with layout randomization? |
|
Layout randomization is primarily for debugging (it pessimizes struct layouts after all), and the optimization is nice-to-have so I think it's ok. |
|
@bors r+ rollup=iffy |
This comment has been minimized.
This comment has been minimized.
What is this?This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.Comparing 38c7129 (parent) -> 873d468 (this PR) Test differencesShow 201 test diffsStage 1
Stage 2
Additionally, 194 doctest diffs were found. These are ignored, as they are noisy. Job group index
Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard 873d4682c7d285540b8f28bfe637006cef8918a6 --output-dir test-dashboardAnd then open Job duration changes
How to interpret the job duration changes?Job durations can vary a lot, based on the actual runner instance |
|
Finished benchmarking commit (873d468): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowOur benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary 0.2%, secondary -3.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary -7.5%, secondary -1.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.0%, secondary 0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 474.192s -> 474.052s (-0.03%) |
Redoing #130998
It was reverted in #151150 due to flakiness. I have traced this to layout randomization perturbing the test (the failure reproduces locally with layout randomization), which is now excluded.