-
Notifications
You must be signed in to change notification settings - Fork 13.4k
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
base: master
Are you sure you want to change the base?
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+ |
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 :)