ZhangYu0123 opened a new pull request, #18496: URL: https://github.com/apache/doris/pull/18496
# Proposed changes Use SIMD stringsearcher and SIMD memcmp optimze split_by_string and substring_index function. - split_by_string has 120%~540% up - substring_index has 22%~46% up (1) split_by_string | needle | before | after | up | comment | |--------|--------| --------|--------|--------| | needle size 6, constant |  |  | 540% | use StringSearcher | | needle size 6, vector |  |  | 120% | use SIMD memcmp | | needle size 1, constant |  |  | 200% | use StringSearcher | | needle size 1, vector | cell | cell | cell | use SIMD memcmp | (2) substring_index 1. needle vector params are not supported. 2. in needle size 1 case, memchr is 6% faster than SIMD stringsearcher. when needle size greater than 1, stringsearcher is better than memmem. | needle | before | after | up | comment | |--------|--------| --------|--------|--------| | needle size 6, constant | ) |  | 46% | use StringSearcher | | needle size 2, constant |  |  | 22% | use StringSearcher | Issue Number: close #xxx ## Problem summary Describe your changes. ## Checklist(Required) * [ ] Does it affect the original behavior * [ ] Has unit tests been added * [ ] Has document been added or modified * [ ] Does it need to update dependencies * [ ] Is this PR support rollback (If NO, please explain WHY) ## Further comments If this is a relatively large or complex change, kick off the discussion at [[email protected]](mailto:[email protected]) by explaining why you chose the solution you did and what alternatives you considered, etc... -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
