Bug #324521 --> poor inline spell checking performance on large text documents. When adding or ignoring a word, just spell check the existing spell selection instead of the entire document since those are the only words that would possibly be effected. Limit the size of the spell check selection to the first 250 mistyped words.

sr=bienvenu


git-svn-id: svn://10.0.0.236/trunk@191344 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
scott%scott-macgregor.org
2006-02-27 22:35:35 +00:00
parent 96b384de2a
commit 7f0c1c3f7f
4 changed files with 145 additions and 76 deletions

View File

@@ -247,6 +247,7 @@ var gComposeRecyclingListener = {
}
//Reset editor
InlineSpellChecker.Init(GetCurrentEditor(), false); // unregister inline spell checking listeners and release the spell checker
EditorResetFontAndColorAttributes();
EditorCleanup();
@@ -3551,5 +3552,4 @@ function InitEditor()
var editor = GetCurrentEditor();
gMsgCompose.initEditor(editor, window.content);
InlineSpellChecker.Init(editor, sPrefs.getBoolPref("mail.spellcheck.inline"));
InlineSpellChecker.checkDocument(window.content.document);
}