Apache OpenOffice (AOO) Bugzilla – Issue 85570
Display performance problem with AutoSpellCheck in very long paragraphs
Last modified: 2017-05-20 11:20:04 UTC
OpenOffice.org Writer 2.x performance is severely impacted when typing a continuous paragraph that is approximately 5 or more pages in length with AutoSpellCheck turned on. This problem does not exist in OpenOffice.org Writer 1.1.5. Steps to duplicate: 1.Open attached file "AutoSpellCheckTestCase.odt" in OpenOffice.org Writer 2.x 2.Scroll to the bottom of the file and start typing directly after the last sentence So far I have found 2 workarounds to this issue in Writer 2.x: 1.Turn off AutoSpellCheck 2.Create a blank line(press enter 2 times) and continue typing. We use OpenOffice.org Writer for transcription and we frequently have continuous paragraphs that are longer that 5 pages in length. We are currently staying back at OpenOffice.org 1.1.5 because of this issue.
Created attachment 51148 [details] Writer AutoSpellCheck performance issue test case
Reassigned to SBA
I do not see anything out of ordinary when typing at the end of the attached doc. griffins854, please elaborate.
Perhaps this example will make the problem more obvious. Make sure the AutoSpellcheck icon is activated on the standard bar. You should see red wavy lines under words it thinks are misspelled in the document. Place the cursor just to the right of the last period in the document on page 6. Hold down the "a" key on the keyboard to create a string of letters a line or two long. While you are holding down the "a" key you should notice that OpenOffice.org 2.x is stuttering every so often at seemingly random intervals. Now turn off AutoSpellcheck and repeat. The stuttering should now be gone. OpenOffice.org 1.1.5 will not stutter with AutoSpellcheck turned on.
I notice the stuttering also with Windows XP and OOo 2.3.1. The attached document sure is one big paragraph. I suspect your organization has some fast typists and this could be troublesome. Entering a blank line also enters a new paragraph, which as you noted, corrects the issue. I did some quick tests and seem to first notice the problem when typing starts on page 5. I also noted that inserting text anywhere in the document causes the same stuttering. I haven't confirmed with 1.1.5 but it should not be an issue in a recent release.
I confirmed that this issue exists in OOo 2.4.0 as well.
Confirmed. Adjusting summary to reflect the findings. Both "AutoSpellcheck ON" AND "A very long paragraph" is needed to see this. Please note that "Holding down a key" is a very good TESTING scenario to see this (Pasting a string by holding down "<Ctrl>+V" works just as good). When typing text "like a human", the effect is less problematic. SBA->AMA: However, the "hopping effect" should be analyzed. Please proceed.
I think this issue is related with issue 36304. And the problem goes worst if you try to delete text at the beginning of the paragraph, and turning AutoSpellCheck doesn't seems to correct the problem. IMHO it is a performance problem when handling large paragraphs, but it is not only related to spell checking. I can't provide any technical details because I don't know Writer internals, but I have seen that processor use goes to 100% when deleting chars, and that's what causes the display to update very slowly, and react with a delay that could be very annoying.
I think a performance problem like this deserves a "3.x" target. Currently we don't have a clue. Question to the submitter: does the performance depend on the number of misspelled words? Means: is OOo slow also if you have a paragraph over 5 pages without any wrong or only a few misspelled words?
sbosio->mba: let me answer your question. I do some tests, generating a text file with a wordlist taken from the spellchecking dictionary for spanish, with nearly 63000 chars on one paragraph. First I open it with Writer, and surprise! Writer inserted 6 paragraph breaks that weren't on the text file (perhaps it deserves another issue?). I delete all paragraph breaks to get a big one paragraph that splits over 14 pages. Without AutoSpellcheck, I press Del key for 5 seconds at the start of the paragraph, and Writer took 43 seconds to delete about 130 chars. With AutoSpellcheck turned on I repeated the test, and still got the same results, where all words weren't highlighted because I took them from the same dict that Writer used to check them. I changed the language to Holland, and then repeated the test, where almost all words were highlighted, but I still got the same results. So, as I said, this issue seems to be a duplicate of issue 36304, and it isn't related with spellchecking, but it is a performance problem of Writer when editing long paragraphs.
Thank you very much for taking the time for the tests. @ama/sba: should we mark this as duplicate?
I confirmed that this issue still exists in OOo 3.0.0 on Windows XP.
Thanks for the confirmation. Let me repeat my last question: @ama/sba: should we mark this as duplicate? In case we we should raise the target of issue 36304 and after fixing it make sure that we verify that this is a duplicate.
I have raised the priority of 36304 and we'll see how it goes.
pls. reassign or close issues. Thx.
Reset assigne to the default "issues@openoffice.apache.org".