Dandandan opened a new pull request #8723:
URL: https://github.com/apache/arrow/pull/8723
Commonly used patterns '%xxx' 'xxx%' and '%xxx' can use faster methods from
Rust standard lib instead.
```
like_utf8 scalar equals time: [828.13 us 830.08 us 832.39 us]
change: [-43.306% -42.962% -42.610%] (p = 0.00 <
0.05)
Performance has improved.
Found 12 outliers among 100 measurements (12.00%)
like_utf8 scalar ends with
time: [927.93 us 929.31 us 930.88 us]
change: [-59.220% -59.149% -59.082%] (p = 0.00 <
0.05)
Performance has improved.
Found 1 outliers among 100 measurements (1.00%)
1 (1.00%) high mild
like_utf8 scalar starts with
time: [930.96 us 931.70 us 932.63 us]
change: [-43.537% -43.432% -43.325%] (p = 0.00 <
0.05)
Performance has improved.
```
Also tried fast path for contains (`%xxx%`), but that was slower than using
the regex.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]