gecko-dev/extensions
Mirko Brodesser f271c866cf Bug 1687263: part 4) Defer and in some cases avoid removing spellchecking-ranges. r=smaug
Removing ranges is expensive. This reduces flickering of the spelling
mistakes and prevents 100% CPU usage of 1 core on slower machines.

The essence of this patch is, that when text doesn't change, all
existing spellchecking ranges are reused.

Before this patch, removing ranges was done as part of the time slice in
`mozInlineSpellChecker::SpellCheckSlice`. That is, slow removals of
ranges contributed to the amount of words to be spellchecked
asynchronously.
Therefore, the amount of words to be spellchecked in one chunk could
increase from the minimum, `INLINESPELL_MINIMUM_WORDS_BEFORE_TIMEOUT` to
the maxium `INLINESPELL_MAXIMUM_CHUNKED_WORDS_PER_TASK`.
Consequently, the asynchronous checking might take longer. If that turns
out to be problematic, reducing
`INLINESPELL_MAXIMUM_CHUNKED_WORDS_PER_TASK` could be a fix.

Differential Revision: https://phabricator.services.mozilla.com/D116096
2021-05-28 07:56:13 +00:00
..
auth Bug 1705659 - Static-analysis check auto fix for auth code r=necko-reviewers,dragana 2021-05-26 09:27:21 +00:00
permissions Bug 1699480 - Back out permissions changes at AC's request, r=geckoview-reviewers,agi 2021-05-19 18:07:28 +00:00
pref Bug 1667276 - Part 2: Add BackgroundTasksManager to invoke task defined in JS. r=mossop 2021-01-27 22:54:17 +00:00
spellcheck Bug 1687263: part 4) Defer and in some cases avoid removing spellchecking-ranges. r=smaug 2021-05-28 07:56:13 +00:00
universalchardet Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
build.mk
confvars.sh
moz.build Bug 1654103: Standardize on Black for Python code in mozilla-central. 2020-10-26 18:34:53 +00:00
moz.configure