-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
expression: implement vectorized evaluation for builtinAtan2ArgsSig #12228
Conversation
expression: implement vectorized evaluation for builtinAsinSig (pingcap#12222)
expression/builtin_math_vec.go
Outdated
return err | ||
} | ||
|
||
result.ResizeFloat64(n, false) |
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.
we can use the result
variable to store one of it's parameter's result. Thus the vectors used in the calculation can be reduced from 3 to 2.
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.
got it!
Codecov Report
@@ Coverage Diff @@
## master #12228 +/- ##
===============================================
- Coverage 81.225% 81.0943% -0.1307%
===============================================
Files 454 454
Lines 99260 98447 -813
===============================================
- Hits 80624 79835 -789
+ Misses 12864 12850 -14
+ Partials 5772 5762 -10 |
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.
LGTM
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.
LGTM
Your auto merge job has been accepted, waiting for 12227 |
/run-all-tests |
@jacklightChen merge failed. |
/run-unit-test |
What problem does this PR solve?
implement vectorized evaluation for builtinAtan2ArgsSig, for #12105
What is changed and how it works?
according to benchmark, about 3 times faster than before:
Check List
Tests