-
Notifications
You must be signed in to change notification settings - Fork 278
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize CatalogItemsComparator for common case
Rewrite the comparison function to be significantly faster [*] in the common case when no accelerators are used in the string. This is done by simply avoiding another copy. [*] Approximately 2x on macOS where wchar_t* is UTF-32 and needs to be converted to UTF-16 for ICU collator, and ~5x on Windows where UTF-16 is used natively. Pre-convert strings to UTF-16 in CatalogItemsComparator return referecne from Catalog::GetTranslation pre-conversion: use on windows too (wip) zzz
- Loading branch information
Showing
5 changed files
with
68 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
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