Optimize signum function (3-25x faster)#12890
Conversation
|
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
unaryfunctions allow faster processing (most likely auto-vectorized code) by avoiding branching on nulls.What changes are included in this PR?
unaryAre these changes tested?
Yes, with existing tests.
Are there any user-facing changes?
Yes, faster
signum: