forked from facebookincubator/velox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add substrings search path for constant like pattern (facebookincubat…
…or#10731) Summary: We noticed that some like constant-patterns can be equivalent to substrings search such as tpch queries Q13 and Q16: "%special%requests%" "%Customer%Complaints%" 1. Add substring-search fast path for like with search pattern : "((%+[^%#_\\]+)+%+)" 2. Some OLAP engine supports "\_" for substring-search. In order to obtain the best performance, "\_" is not supported here, '#' is not support for the same reason too. 3. This PR will also affect single substring-search like tpch Q9, if a fast-simd-strstr to speedup string-search will be added as follow-up, changes nothing right now. benchmark result : before: tpchQuery9 23.96ms 41.73 tpchQuery13 156.02ms 6.41 tpchQuery16Part 9.02ms 110.83 tpchQuery16Supplier 192.13ms 5.20 after: tpchQuery9 24.30ms 41.14 tpchQuery13 55.03ms 18.17 tpchQuery16Part 8.92ms 112.07 tpchQuery16Supplier 17.64ms 56.69 Pull Request resolved: facebookincubator#10731 Reviewed By: xiaoxmeng Differential Revision: D63261743 Pulled By: Yuhta fbshipit-source-id: 3822d581790db32286bd7b9756f53401684c1012
- Loading branch information
1 parent
12296b5
commit 4713798
Showing
4 changed files
with
115 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters