Just pass Layout directly to box_new_uninit#152737
Just pass Layout directly to box_new_uninit#152737rust-bors[bot] merged 2 commits intorust-lang:mainfrom
Layout directly to box_new_uninit#152737Conversation
|
rustbot has assigned @Mark-Simulacrum. Use Why was this reviewer chosen?The reviewer was selected based on:
|
|
Since we saw this code is perf-sensitive, to make sure it doesn't blow up... |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Just pass `Layout` directly to `box_new_uninit`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
f6af841 to
d413781
Compare
|
Finished benchmarking commit (8dd6c97): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never 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 -2.3%, secondary 3.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -3.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.2%, secondary -2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 480.798s -> 483.051s (0.47%) |
This comment has been minimized.
This comment has been minimized.
035fa58 to
9ed30a0
Compare
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Just pass `Layout` directly to `box_new_uninit`
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (b517e4f): comparison URL. Overall result: ❌✅ regressions and improvements - please read the text belowBenchmarking this pull request means it may be perf-sensitive – we'll automatically label it not fit for rolling up. You can override this, but we strongly advise not to, due to possible changes in compiler perf. Next Steps: If you can justify the regressions found in this try perf run, please do so in sufficient writing along with @bors rollup=never 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 1.3%, secondary 2.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.3%, secondary -3.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.6%, secondary -2.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 483.207s -> 482.56s (-0.13%) |
We have a constant for it already (used in `RawVec` for basically the same polymorphization) so let's use it. Conveniently, it can even be safe that way!
9ed30a0 to
4b03b97
Compare
|
@bors r=RalfJung |
This comment has been minimized.
This comment has been minimized.
Just pass `Layout` directly to `box_new_uninit` We have a constant for it already (used in `RawVec` for basically the same polymorphization) so let's use it. This is a simple follow-up to #148190 from one of the comments.
|
💔 Test for c39eac6 failed: CI. Failed job:
|
|
@bors retry (Could not resolve host: static.crates.io) |
|
The job Click to see the possible cause of the failure (guessed by this bot) |
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 5fb2ff8 (parent) -> d8b2222 (this PR) Test differencesShow 222 test diffs222 doctest diffs were found. These are ignored, as they are noisy. Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard d8b2222b11fc03a31d43707c8c9006f025809ece --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 (d8b2222): 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.4%, secondary 0.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeResults (primary -0.7%, secondary -2.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 480.585s -> 481.835s (0.26%) |
|
Clearly more green than red overall. The one primary regression in icounts (1.27%) looks like it's probably just codegen unit shuffling: So overall don't think there's anything needed here. The monomorphization structure changing is unsurprising to not be a pure win, but I think it's clearly an overall improvement. The binary size changes are particularly interesting: purely green, with even some @rustbot label: +perf-regression-triaged |

View all comments
We have a constant for it already (used in
RawVecfor basically the same polymorphization) so let's use it.This is a simple follow-up to #148190 from one of the comments.