View Single Post
Old 04-15-2021, 11:16 AM   #97
KevinH
Sigil Developer
KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.KevinH ought to be getting tired of karma fortunes by now.
 
Posts: 8,918
Karma: 6240958
Join Date: Nov 2009
Device: many
Okay, I tested the current CV spellchecking code and it appears to be working as expected. The majority of the HTMLSpellCheck code is actually unchanged from Sigil-1.3.0 since most of the new multiple language code is kept in its own file: HTMLSpellCheckML.

The only code that could be involved is the SpellCheck code itself. It has to be modified to support both CV spellchecking and Multiple Language spellchecking.

I added some debug statements and the CodeView (CV) spellchecking code is mostly unchanged as well and nothing is duplicated that could slow things down.

You mentioned it took long time to load Sigil's Preferences and it builds a complete list of all dictionaries and user dictionaries each time Preferences are loaded.

So have you installed a large number of hunspell dictionaries or created a large number of user wordlists by any chance?

Are you using your own custom hunspell dictionary?

What is your Sigil Primary and Secondary Spellcheck dictionaries set to in Sigil Preferences when you run your tests?

There really is nothing that should slow down CodeView spellchecking at all. Whereas using the SpellCheck dialog is much slower than before because of the need to parse to detect the language of every word.

But that can not be the source of your slowdown.

So again, I am stumped. Regular CV spellchecking is actually faster now than before given speedups in xhtmlhighlighting speed (which is how CV spellchecking is done) but that did not change from Sigil-1.3.0 through Sigil-1.5.1 so that can not be the source of the difficulties.
KevinH is online now   Reply With Quote