-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Rework beautify_doc_string so that it returns a Symbol instead of a String #80295
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
Conversation
This comment has been minimized.
This comment has been minimized.
0132b49
to
2de6bc6
Compare
2de6bc6
to
a8ca845
Compare
a8ca845
to
64afded
Compare
@bors try @rust-timer queue |
Awaiting bors try build completion. |
⌛ Trying commit 64afded with merge bfedb49624a98ca1cdf9865df9704c425f540444... |
☀️ Try build successful - checks-actions |
Queued bfedb49624a98ca1cdf9865df9704c425f540444 with parent 75e1acb, future comparison URL. @rustbot label: +S-waiting-on-perf |
Finished benchmarking try commit (bfedb49624a98ca1cdf9865df9704c425f540444): 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 |
Perf look like noise, probably any improvements here are being lost because we immediately call to_string(). I think this would be worthwhile as part of #80261 though. |
Just like I said. As is, it's pretty useless unfortunately. So I suggest to merge this so I can integrate it into #80261. |
We need someone from the compiler team. Ping @oli-obk :) |
Oh and ping @petrochenkov too. :) |
So, the goal is to not just return a |
Done! Anything that needs to be updated here @petrochenkov (is the new description enough too?)? |
Ok, let's move on then! @bors: r=petrochenkov |
📌 Commit 64afded has been approved by |
☀️ Test successful - checks-actions |
This commit comes from #80261, the goal here is to inspect the impact on performance of this change on its own.
The idea of rewriting
beautify_doc_string
is to not go throughString
if we don't need to update the doc comment to be able to keep the originalSymbol
and also to have better performance.r? @jyn514