-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Avoid a few more allocations in write_shared.rs
#142667
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
Avoid a few more allocations in write_shared.rs
#142667
Conversation
|
Oh, maybe r? @GuillaumeGomez then? |
Looks promising, thanks! Let's check perf impact. @bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
…r=<try> Avoid a few more allocations in `write_shared.rs` Inspired by #141421 , avoids a few `Vec`, `PathBuf` and `String` allocations in `write_shared.rs`. I don't think these will show up on benchmarks, but are still worthwhile IMHO. Also includes a few small cleanups. r? nnethercote - if you'd like :)
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
I like the cleanups in commits 1, 3, 4, and 5. I'm ambivalent about the introduction of |
Finished benchmarking commit (91cf0c3): comparison URL. Overall result: no relevant changes - no action neededBenchmarking 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. @bors rollup=never Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (secondary 2.7%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -2.5%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis benchmark run did not return any relevant results for this metric. Bootstrap: 692.01s -> 691.962s (-0.01%) |
The perf CI run is neutral. r=me for commits 1, 3, 4, and 5. |
56fe2f6
to
2bf66e3
Compare
@nnethercote thanks for reviewing! Rebased without those two commits. |
Thanks! @bors r+ |
☀️ Test successful - checks-actions |
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 d4e1159 (parent) -> fa2f355 (this PR) Test differencesNo test diffs found Test dashboardRun cargo run --manifest-path src/ci/citool/Cargo.toml -- \
test-dashboard fa2f3552dae918294c8572b2a07fed2746722dd3 --output-dir test-dashboard And 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 (fa2f355): comparison URL. Overall result: no relevant changes - no action needed@rustbot label: -perf-regression Instruction countThis benchmark run did not return any relevant results for this metric. Max RSS (memory usage)Results (primary -1.7%, secondary -3.4%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResults (secondary 0.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Bootstrap: 691.957s -> 689.982s (-0.29%) |
Inspired by #141421 , avoids a few
Vec
,PathBuf
andString
allocations inwrite_shared.rs
. I don't think these will show up on benchmarks, but are still worthwhile IMHO.Also includes a few small cleanups.
r? nnethercote - if you'd like :)