-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
Small wins for formatting-related code #108043
Conversation
r? @m-ou-se (rustbot has picked a reviewer for you, use r? to override) |
Hey! It looks like you've submitted a new PR for the library teams! If this PR contains changes to any Examples of
|
fmt::Write::write_fmt
for String
and OsOstring
☔ The latest upstream changes (presumably #108538) made this pull request unmergeable. Please resolve the merge conflicts. |
7bef7f7
to
ca28dfb
Compare
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
⌛ Trying commit ca28dfbb4b820b0e7cfc1fd6664bae9639c9bb8c with merge 8ad851c86fce5857555c1acdd0b2dd1a8f216b49... |
☀️ Try build successful - checks-actions |
This comment has been minimized.
This comment has been minimized.
Finished benchmarking commit (8ad851c86fce5857555c1acdd0b2dd1a8f216b49): comparison URL. Overall result: ❌✅ regressions and 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. |
I had a thought on this: instead of re-implementing |
This comment has been minimized.
This comment has been minimized.
@a1phyr any updates on the CI failure? thanks |
Ubuntu was down 😅 |
@bors try @rust-timer queue Just trying to collect more data to help assess the runtime perf suite. |
Improve `PadAdapter::write_char` Split from rust-lang#108043
|
Improve `PadAdapter::write_char` Split from rust-lang#108043
Improve `PadAdapter::write_char` Split from rust-lang#108043
24af417
to
78846d1
Compare
I have rebased the PR on |
Weird! I think this was honestly pretty good solely on the strength of the binary size improvement seemingly across-the-board, nevermind the perf seemingly being not-bad. @bors r+ |
…bilee Small wins for formatting-related code This PR does two small wins in fmt code: - Override `write_char` for `PadAdapter` to use inner buffer's `write_char` - Override some `write_fmt` implementations to avoid avoid the additional indirection and vtable generated by the default impl.
The job Click to see the possible cause of the failure (guessed by this bot)
|
💔 Test failed - checks-actions |
Can't tell what failed. |
☀️ Test successful - checks-actions |
Finished benchmarking commit (df99bc1): comparison URL. Overall result: ❌✅ regressions and 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.
CyclesThis benchmark run did not return any relevant results for this metric. Binary sizeResultsThis 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.
Bootstrap: 636.108s -> 634.721s (-0.22%) |
Hmm, that's slightly less good? but it still seems okay overall. |
This PR does two small wins in fmt code:
write_char
forPadAdapter
to use inner buffer'swrite_char
write_fmt
implementations to avoid avoid the additional indirection and vtable generated by the default impl.