-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Remove <mbe::TokenTree as Clone>
#95928
Conversation
Some
|
I'm not entirely happy with the fourth commit, especially |
@bors try @rust-timer queue |
Awaiting bors try build completion. @rustbot label: +S-waiting-on-perf |
⌛ Trying commit 538e5ee0b1397787546cfdf17d22f355ec2fa0fe with merge bb8700c7c23a09b7b629028065c25b92089b359f... |
☀️ Try build successful - checks-actions |
Queued bb8700c7c23a09b7b629028065c25b92089b359f with parent 48a9e10, future comparison URL. |
Finished benchmarking commit (bb8700c7c23a09b7b629028065c25b92089b359f): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. Benchmarking 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 Footnotes |
This is a nice performance win on some crates.
It avoids some unnecessary allocations.
538e5ee
to
ae7c63c
Compare
I have added two new commits to address review comments. |
r=me after addressing #95928 (comment) and squashing review commits back into main commits. |
This removes the last use of `<mbe::TokenTree as Clone>`. It also removes two trivial methods on `Delimited`.
ae7c63c
to
dd9028a
Compare
I have addressed the comments and squashed the commits. @bors r=petrochenkov |
📌 Commit dd9028a has been approved by |
☀️ Test successful - checks-actions |
Finished benchmarking commit (f9d4d12): comparison url. Summary:
If you disagree with this performance assessment, please file an issue in rust-lang/rustc-perf. @rustbot label: -perf-regression Footnotes |
mbe::TokenTree
doesn't really need to implementClone
, and getting rid of that impl leads to some speed-ups.r? @petrochenkov