Commits


Heres, Daniel authored and Jorge C. Leitao committed 0a9fb80ee14
ARROW-10665: [Rust] like/nlike utf8 scalar fast paths, bug fixes in like/nlike 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 (almost 2 times) slower than using the regex. Closes #8723 from Dandandan/like_utf8_fast_paths Lead-authored-by: Heres, Daniel <danielheres@gmail.com> Co-authored-by: Daniël Heres <danielheres@gmail.com> Signed-off-by: Jorge C. Leitao <jorgecarleitao@gmail.com>