Uh oh!
There was an error while loading. Please reload this page.
Avoid temporary allocations in render_assoc_item - #82855
Conversation
rust-highfive
commented
Mar 7, 2021
(rust-highfive has picked a reviewer for you, use r? to override) |
jyn514
commented
Mar 7, 2021
@bors try @rust-timer queue |
rust-timer
commented
Mar 7, 2021
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
render_assoc_itemrender_assoc_itembors
commented
Mar 7, 2021
⌛ Trying commit 7b886069c3b698f0ea8e4ced5589b1945fcaf71f with merge 30f3371c2e5ed13ec440a7e3fafea51639bf21f7... |
This comment has been minimized.
This comment has been minimized.
bors
commented
Mar 7, 2021
☀️ Try build successful - checks-actions |
rust-timer
commented
Mar 7, 2021
Queued 30f3371c2e5ed13ec440a7e3fafea51639bf21f7 with parent dfe519b, future comparison URL. |
rust-timer
commented
Mar 7, 2021
Finished benchmarking try commit (30f3371c2e5ed13ec440a7e3fafea51639bf21f7): comparison url. Benchmarking this pull request likely means that it is perf-sensitive, so we're automatically marking it as not fit for rolling up. Please note that if the perf results are neutral, you should likely undo the rollup=never given below by specifying Importantly, though, if the results of this run are non-neutral do not roll this PR up -- it will mask other regressions or improvements in the roll up. @bors rollup=never |
GuillaumeGomez
commented
Mar 7, 2021
There is at most -0.1% instructions. In any case, good improvement, thanks! @bors: r+ |
bors
commented
Mar 7, 2021
📋 Looks like this PR is still in progress, ignoring approval. Hint: Remove [WIP] from this PR's title when it is ready for review. |
GuillaumeGomez
commented
Mar 7, 2021
And I just saw that the CI wasn't happy and that the PR was still WIP... @bors: r- |
`render_assoc_item` came up as very hot in a profile of rustdoc on `bevy`. This avoids some temporary allocations just to calculate the length of the header. This should be a strict improvement, since all string formatting was done twice before.
render_assoc_itemrender_assoc_itemjyn514
commented
Mar 22, 2021
@bors r=GuillaumeGomez |
bors
commented
Mar 22, 2021
📌 Commit 1e6d849 has been approved by |
bors
commented
Mar 22, 2021
bors
commented
Mar 22, 2021
☀️ Test successful - checks-actions |
render_assoc_itemcame up as very hot in a profile of rustdoc onbevy. This avoids some temporary allocations just to calculate thelength of the header.
This should be a strict improvement, since all string formatting was
done twice before.
cc #82845