Optimize mem utils functions#5658
Conversation
|
[REVIEW NOTIFICATION] This pull request has been approved by:
To complete the pull request process, please ask the reviewers in the list to review by filling The full list of commands accepted by this bot can be found here. DetailsReviewer can indicate their review by submitting an approval review. |
- add `avx2_strstr` to accelerate substr search - add `avx2_mem_equal` to accelerate mem equal cmp
f4d60f7 to
0ce3688
Compare
ecc60e0 to
32d89f4
Compare
|
/run-all-tests |
|
/hold |
|
/merge |
|
@solotzg: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
This pull request has been accepted and is ready to merge. DetailsCommit hash: 8c85675 |
|
/merge |
|
@solotzg: It seems you want to merge this PR, I will help you trigger all the tests: /run-all-tests You only need to trigger If you have any questions about the PR merge process, please refer to pr process. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the ti-community-infra/tichi repository. |
|
/unhold |
Coverage for changed filesCoverage summaryfull coverage report (for internal network access only) |
|
/run-sanitizer-test asan |
This reverts commit a8c8cb1.
What problem does this PR solve?
Issue Number: ref #5294
What is changed and how it works?
avx2_strstr,avx2_mem_equal,avx2_memchravx2_strstris same asstd::string_view::findavx2_mem_equalis same asbcmporstd::memcmp(p1,p2,n) == 0avx2_memchris same asstd::memchrtiflash/libs/libcommon/include/common/StringRef.h
Line 93 in eaf1a4c
1000000, instructions about avx512 may begin to get better resultslikeBenchmark
ENV
tiflash/dbms/src/Functions/tests/bench_collation.cpp
Lines 129 to 147 in eef9e22
bcmp, mem_utils::memoryEqual(use avx512) andavx2_mem_equalstd::string_view::findandavx2_strstrMemUtilsEqual_xxxmeans test str-size isxxxMemUtilsStrStr_xxx_yyymeans testsrc-str-sizeisxxxandneedle-str-sizeisyyySQL
Check List
Tests
Side effects
Documentation
Release note