gecko-dev/extensions
Makoto Kato bf48e8ad9d Bug 1502661 - Part 3. Use async API for spell checking. r=masayuki
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
2019-01-11 15:46:05 +09:00
..
auth Bug 1511383: Update vim modelines after clang-format; r=sylvestre 2018-11-30 16:39:55 +01:00
cookie Bug 1517014 - Part 1: Add nsIPermissionManager.testPermissionOriginNoSuffix(), an API for testing permissions using an origin string without the overhead of parsing it into a URI; r=nika 2019-01-07 18:45:26 +00:00
permissions Bug 1511181 - Reformat everything to the Google coding style r=ehsan a=clang-format 2018-11-30 11:46:48 +01:00
pref Bug 1511393 - Use c-basic-offset: 2 in Emacs mode line for C/C++ code. r=nbp 2018-12-01 04:52:05 +09:00
spellcheck Bug 1502661 - Part 3. Use async API for spell checking. r=masayuki 2019-01-11 15:46:05 +09:00
universalchardet Bug 977540 - Avoid running Japanese, Russian and Ukrainian detectors on domains associated with different encoding legacies. r=emk. 2018-12-12 09:51:52 +02:00
build.mk
confvars.sh Bug 1502457 - Move MOZ_APP_VERSION{,_DISPLAY} to python configure. r=nalexander 2018-11-16 01:15:35 +00:00
moz.build Bug 1332423 - add BUG_COMPONENT to extensions/* files. r=bsmedberg 2017-01-27 08:19:19 -05:00
moz.configure