-
-
Notifications
You must be signed in to change notification settings - Fork 763
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ICU-21710 Additional clean up after removing BOYER_MOORE code from us…
…earch.cpp Changes: - We can completely remove the shift tables and related fields from data structs. - Creation of UStringSearch objects should be faster now, as it doesn't waste time computing the unused shift tables. - The sizeof(UStringSearch) is decreased from 5240 to 3192, so this should help to reduce memory for applications that create many string search objects. Note regarding the comments on initialize(). It actually does not set illegal argument error if pattern is all ignoreables. Added a test case for it.
- Loading branch information
Showing
3 changed files
with
22 additions
and
133 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