From 228324c1c615512c3619eefd8dd4b79d926fec8f Mon Sep 17 00:00:00 2001 From: Alexey Gopachenko Date: Sun, 8 Nov 2009 21:35:16 +0300 Subject: [PATCH] Spellchecker batch optimization TODO --- .../com/intellij/spellchecker/inspections/SpellCheckingInspection.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java index cc8b56c584..47483a68d9 100644 --- a/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java +++ b/plugins/spellchecker/src/com/intellij/spellchecker/inspections/SpellCheckingInspection.java @@ -202,6 +202,8 @@ public class SpellCheckingInspection extends LocalInspectionTool { TextRange textRange, String word, Collection fixes) { + //TODO: these descriptions eat LOTS of HEAP on batch run - need either to make them constant or evaluate template dynamically + // ( add something like #text substitution) final String defaultDescription = SpellCheckerBundle.message("word.0.1.is.misspelled", word, token.getElement().getLanguage()); final String tokenDescription = token.getDescription(); final String description = tokenDescription == null ? defaultDescription : tokenDescription; -- 2.11.4.GIT