IJPL-199855 Performance Degradation in DataSetPerformanceTest

Merge-request: IJ-MR-171183
Merged-by: Ilia Permiashkin <ilia.permiashkin@jetbrains.com>

GitOrigin-RevId: 7fcdd29105138f4bbbf7ec33f066fa801fe01189
This commit is contained in:
Ilia Permiashkin
2025-08-04 10:42:24 +00:00
committed by intellij-monorepo-bot
parent 685cf0a8be
commit 54dc320eca
3 changed files with 4 additions and 3 deletions
@@ -223,8 +223,6 @@ class SpellCheckerManager @Internal constructor(@Internal val project: Project,
fun removeDictionary(path: String): Unit = spellChecker!!.removeDictionary(path)
fun isDictionaryLoad(path: String): Boolean = spellChecker!!.isDictionaryLoad(path)
fun hasProblem(word: String): Boolean {
return !spellChecker!!.isCorrect(word) && !isCorrectExtensionWord(word)
}
@@ -138,7 +138,7 @@ class GrazieSpellCheckerEngine(
override fun isDictionaryLoad(name: String): Boolean = adapter.containsSource(name)
override fun getDictionaryNames(): Set<String> = adapter.names
override fun getDictionaryNames(): Set<String> = adapter.dictionaryNames
override fun loadDictionary(loader: Loader) {
this.loader.loadWordList(loader, adapter::addList)
@@ -12,6 +12,9 @@ internal abstract class EditableWordListAdapter {
val names: Set<String>
get() = aggregator.keys + dictionaries.keys
val dictionaryNames: Set<String>
get() = dictionaries.keys
fun addDictionary(dictionary: Dictionary) {
dictionaries[dictionary.name] = dictionary
}