Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Only use MVMGraphemeIter_cached for strands in KMP index
If the Haystack is a strand, use MVM_string_gi_cached_get_grapheme since it retains its grapheme iterator over invocations unlike MVM_string_get_grapheme_at_nocheck and caches the previous grapheme. It is slower for flat Haystacks though (ever since I got MVM_string_get_grapheme_at_nocheck to be inlined).
- Loading branch information
Showing
2 changed files
with
29 additions
and
7 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