voikko / libreoffice-voikko

Language checker and hyphenator extension for LibreOffice
Mozilla Public License 2.0
13 stars 7 forks source link

North Saami spellchecking is slow #10

Closed albbas closed 6 years ago

albbas commented 6 years ago

In LibreOffice on KDE Neon (Ubuntu Xenial/16.04 with updated KDE) the North Saami voikko-based spellchecker makes Writer quite slow. I haven't tested any other systems.

/usr/lib/libreoffice/program/soffice.bin --writer runs at 100% CPU utilisation.

I use the apertium-nightly packages for xenial.

An example document that triggers this behavior is found here: https://gtsvn.uit.no/freecorpus/orig/sme/admin/depts/other_files/samedikki_doaibma_2015.docx

Installed packages:

libreoffice-writer 1:5.1.6~rc2-0ubuntu1~xenial2
libreoffice-voikko 5.0-2
libvoikko1:amd64 4.1.1~r5827-0ubuntu1~xenial1
hfst-ospell 0.5.0~r352-0ubuntu1~xenial1
giella-sme 0.0.20150917~r158527-1~sid1
hatapitk commented 6 years ago

Where does hfst-ospell 0.5.0~r352-0ubuntu1~xenial1 come from? Ubuntu and Debian do not have anything newer than 0.4.5. Using version 0.4.5~r343-2.1 this bug cannot be reproduced because zhfst spellers do not appear to work at all.

albbas commented 6 years ago

They come from the apertium nightly/unstable repository, but right now libvoikko1 is broken due to api changes in hfst-ospell. Tino Didriksen said he would look into that breakage.

hatapitk commented 6 years ago

OK. Now that hfst-ospell 0.5.0 has been released I was able to test this. I could not reproduce the slowness. The linked .docx document loads fine and spell checking works including suggestions for misspelled words. No unusual CPU utilization either (and I am testing this with 5 years old cheap laptop).

@albbas Can you still reproduce this issue?

hatapitk commented 6 years ago

I'm closing this as not reproducible but it is of course OK to reopen it if the issue can be reproduced. Most likely the observed slowness was related to some specific combination of dependent libraries or spellers.