-
Notifications
You must be signed in to change notification settings - Fork 599
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(array): use into
for append datum matching [IGNORE ME]
#9527
Conversation
Signed-off-by: Bugen Zhao <[email protected]>
), | ||
}, | ||
Some(scalar_ref) => paste::paste! { match self { | ||
$( Self::$variant_name(inner) => inner.append_n(n, Some(scalar_ref.[<into_ $suffix_name>]())), )* |
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.
Does into
also result in O(n)
lookup?
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.
I'm not sure about the compiler's optimization. 🥺 Let's wait for the flamegraph.
Codecov Report
@@ Coverage Diff @@
## main #9527 +/- ##
==========================================
+ Coverage 70.72% 70.80% +0.07%
==========================================
Files 1232 1232
Lines 206505 206500 -5
==========================================
+ Hits 146055 146204 +149
+ Misses 60450 60296 -154
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 6 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Seems no obvious improvements. 😟 |
It seems inevitable to touch |
Signed-off-by: Bugen Zhao <[email protected]>
into
for append datum matchinginto
for append datum matching [IGNORE ME]
Signed-off-by: Bugen Zhao <[email protected]>
This reverts commit 8481093.
This reverts commit 7e173cf.
Maybe can try
Did an experiment with
Seems like with |
It seems that |
I hereby agree to the terms of the RisingWave Labs, Inc. Contributor License Agreement.
What's changed and what's your intention?
As suggested at #9113 (comment), this reduces the domain of
match
and may improve the performance (?).Checklist For Contributors
./risedev check
(or alias,./risedev c
)Checklist For Reviewers
Documentation
Click here for Documentation
Types of user-facing changes
Please keep the types that apply to your changes, and remove the others.
Release note