-
-
Notifications
You must be signed in to change notification settings - Fork 521
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
refactor(transformer/jsx): take ownership of Vec
values by into_iter
rather than drain
#9216
refactor(transformer/jsx): take ownership of Vec
values by into_iter
rather than drain
#9216
Conversation
Vec
values by into_iter
rather than drain
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Vec
values by into_iter
rather than drain
Vec
values by into_iter
rather than drain
CodSpeed Performance ReportMerging #9216 will not alter performanceComparing Summary
|
I expect this to have some visible performance improvements but it is not, anyway I think this is a good refactor! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a great improvement. We're now only branching once on is_automatic
, rather than multiple times. This makes the code easier to understand, even though it doesn't seem to affect performance.
Merge activity
|
…er` rather than `drain` (#9216) This change I forgot to do this in #9209, In the case of owning `Vec`, we do not need to obtain the value owner through `drain` but `into_iter`. The diff in this PR is hard to diff. My purpose is to change `drain` to `into_iter`, other changes are for solving the borrow check and keeping the same output.
55a11bf
to
25c4d69
Compare
This change I forgot to do this in #9209, In the case of owning
Vec
, we do not need to obtain the value owner throughdrain
butinto_iter
.The diff in this PR is hard to diff. My purpose is to change
drain
tointo_iter
, other changes are for solving the borrow check and keeping the same output.