зеркало из https://github.com/mozilla/gecko-dev.git
bf48e8ad9d
Previous implementation is - Use idle runnable for spellchecker - If spellchecker runnable spends 1ms (with 5 words), spellchecker is suspended, then resume it after 1s. - If misspell is 3/4 of extensions.spellchecker.inline.max-misspellings per DoSpellCheck, spellchecker is stopped. After this change, IPC is async, so we cannot count misspell words without waiting the result of async call. So I would like to change to - Use idle runnable for spellchecker - If spellchecker runnable spends 1ms (with 5 words), spellchecker is suspended, then resume it after 1s. - If misspell reaches extensions.spellchecker.inline.max-misspellings, stop spellcheck. - spellchecker IPC is called per maximum 25 (INLINESPELL_MAXIMUM_CHUNKED_WORDS_PER_TASK) words. As long as my MacBook (Core m3), spellchecker can check 100-150 words per 1ms after this fix. Also, INLINESPELL_MAXIMUM_CHUNKED_WORDS_PER_TASK define is less than 5, a lot of a11y tests will be failed. Because it uses selection listener to count all misspell words without waiting completion. Differential Revision: https://phabricator.services.mozilla.com/D14837 --HG-- extra : rebase_source : 59185554236409d3320cc77714a776f2228214af |
||
---|---|---|
.. | ||
auth | ||
cookie | ||
permissions | ||
pref | ||
spellcheck | ||
universalchardet | ||
build.mk | ||
confvars.sh | ||
moz.build | ||
moz.configure |