-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: optimize impl of Language::find_word
For languages that support it, the implementation of `Language::find_word` now uses binary search to find the word index. For languages that do not support it, the old linear search is used. This substantially improves the runtime performance of `Language::find_word`. For affected languages, average lookup rate is increased ~25x on release builds and ~100x on debug builds.
- Loading branch information
Showing
1 changed file
with
110 additions
and
1 deletion.
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