-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Optimize signum
function (3-25x faster)
#12890
Conversation
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👍
Are we going to remove all usages of |
If the replacement always has same or better performance, I don't see why not |
Makes sense to me! |
I don't mind adding the benchmarks, since they
|
🚀 looking very nice 👌 |
Perhaps it could be a nice ticket to file / project ti organize |
filed #12923 |
* add bench * optimize signum
Which issue does this PR close?
Didn't create an issue beforehand.
Rationale for this change
Same idea as #12881. Using the
unary
functions allow faster processing (most likely auto-vectorized code) by avoiding branching on nulls.What changes are included in this PR?
unary
Are these changes tested?
Yes, with existing tests.
Are there any user-facing changes?
Yes, faster
signum
: