-
Notifications
You must be signed in to change notification settings - Fork 148
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid red flicker from the recognizer.
The recognizer discarded its cache when starting a new input line. This was a simple way to constrain growth of the cache. But if "foo" is recognized in one input line, and is typed again a few seconds later in the next input line, then "foo" would briefly flash red (i.e. the unrecognized color) because the cache got discarded. I got tired of seeing the red flicker. Now upon starting a new input line it ages out entries to keep 2 hours of results in the cache, but it marks all entries as out of date. This enables the recognizer to report the cached result, but also enqueue the word again for recognition.
- Loading branch information
1 parent
15a986f
commit 84a94eb
Showing
1 changed file
with
77 additions
and
24 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