[Libreoffice-bugs] [Bug 123640] New: Sort dialog takes forever to load when many columns are selected

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Feb 22 08:58:58 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=123640

            Bug ID: 123640
           Summary: Sort dialog takes forever to load when many columns
                    are selected
           Product: LibreOffice
           Version: 6.2.0.1 rc
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Calc
          Assignee: libreoffice-bugs at lists.freedesktop.org
          Reporter: Marcel.Waldvogel at uni-konstanz.de

Description:
When having selected many columns (e.g. by selecting entire rows or after
"Select All"), displaying the "Data→Sort…" dialog takes seemingly forever (>1
minute; operating systems asks whether to force quit LibreOffice).

Steps to Reproduce:
1. Open a new spreadsheet
2. Select several (or all) rows
3. Choose "Data→Sort…"
4. Wait

Actual Results:
LibreOffice is blocked for more than a minute, the operating system asks
whether to force quit the application (which I accepted twice, before becoming
patient enough). This can lead to user data loss.

Expected Results:
The process should be much faster (on the order of a second).



Reproducible: Always


User Profile Reset: No



Additional Info:
Despite not really knowing what LibreOffice does in that time, I still have
some suggestions on what could be done:

1. Speed up the loop inserting the column names into the dialog (maybe it is
even an O(n²) algorithm?)
2. Only insert columns which do have real data into the dialog

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20190222/226713a7/attachment-0001.html>


More information about the Libreoffice-bugs mailing list