-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enhance: [2.4] Use
MARISA_LABEL_ORDER
when building trie index (#36060
) Cherry pick from master pr: #36034 Related to #35941 Previous PR: #35943 This PR make `Trie` index using `MARISA_LABEL_ORDER`, which make predictive search iterating in lexicographic order. When trie index is build in label order, lexicographc could be utilized accelerating `Range` operations. However according to the official document, using `MARISA_LABEL_ORDER` will make "exact match lookup, common prefix search, and predictive search" slower. --------- Signed-off-by: Congqi Xia <[email protected]>
- Loading branch information
Showing
2 changed files
with
103 additions
and
22 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