https://bugs.freedesktop.org/show_bug.cgi?id=49350

             Bug #: 49350
           Summary: freeze when saving new entry to a large autocorrect
                    replacement table
    Classification: Unclassified
           Product: LibreOffice
           Version: LibO 3.3.0 release
          Platform: All
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Linguistic component
        AssignedTo: [email protected]
        ReportedBy: [email protected]


Created attachment 60864
  --> https://bugs.freedesktop.org/attachment.cgi?id=60864
large autocorrect database

when you enter the autocorrect replacement table adding new entries, you have
to click “OK” to save them when you are done.

If the autocorrect database is very large, it takes several seconds to close
the replacement table and save the new entries 

steps to reproduce

1- download the attached acor_it-IT.dat file (more than 47500 entries)
2- put it into the autocorrect folder which is:
/home/<user>/.libreoffice/3/user/autocorr (Linux) or 
\Users\<user>\AppData\Roaming\LibreOffice\3\user\autocorr (Windows)
3- open a Writer new sheet
4- Format -> Autocorrect -> Autocorrect options -> Replace
5- select Italian (Italy) 
6- add one random autocorrect entry and click New 
7- click OK

LibO freezes for several seconds before closing the replacement table.
When the autocorrect database is small it's almost instantaneous, but when you
have a large database (like in this scenario) things become very slow. 

--------------------

it seems that OOo/LibO autocorrect feature has many performance issues when
dealing with large autocorrect databases.

loading the replacement table was incredibly slow in OOo (
https://issues.apache.org/ooo/show_bug.cgi?id=101726 ) with almost 15 minutes
needed in OOo 3.3 to load a 65000 entries list.... now thanks to Deszi Szabolcs
patch in LibO 3.5.1 this huge time has been reduced to a few seconds. (great
improvement indeed!!!)

http://cgit.freedesktop.org/libreoffice/core/commit/?h=libreoffice-3-5-1&id=14f0c12942a8557d3d9dcdaea2e80bad34f40d86

large autocorrect databases also cause some freezing while start typing ( Bug
46805 ) which has been partially solved by Michael Meeks with his 3.5.4 patch
that reduced to 50% the freeze time.

http://cgit.freedesktop.org/libreoffice/core/commit/?id=a617eecdb6b2f8d6bb1b20674f8be8ce4d60f2d1&g=libreoffice-3-5


however, saving into the replacement table is still very slow in LibO despite
the previous bug fixes. 

adding and saving new autocorrect entries is instead very fast if you use
"right click autocorrect" suggestions. 

so the slowness seems related to the closure of the replacement table itself.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to