Bug 160286 - Slow Calc FILEOPEN, EDITING, FILESAVE version 24.2.
Summary: Slow Calc FILEOPEN, EDITING, FILESAVE version 24.2.
Status: UNCONFIRMED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
24.2.1.2 release
Hardware: ARM macOS (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks:
 
Reported: 2024-03-20 13:49 UTC by Franco
Modified: 2024-04-21 22:59 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
File very slow to open and operate on (522.00 KB, application/vnd.ms-excel)
2024-04-21 12:39 UTC, Franco
Details
Thw example file with yellow background removed and external link broke (519.50 KB, application/vnd.ms-excel)
2024-04-21 17:18 UTC, Franco
Details
The last sample file, cleaned of data and format beyond the last in every sheet. (572.50 KB, application/vnd.ms-excel)
2024-04-21 22:58 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Franco 2024-03-20 13:49:16 UTC
I have tried release 24.2.1 on MacBook Air M1, 2020, with MacOS Sonoma 14.4 (23E214), on a .xls file with 14 internal sheets, and some external links.
The largest sheet has approx 400 rows and 10 columns.
Filesize: .xls is 511KB, .xlsx is 179KB, .ods is 201KB.
The largest sheet has approx 400 rows and 10 columns.

It is very very sluggish, painful to open, editing, saving. Not usable.
I have saved the file to .xlsx: a bit better.
I have saved to .ods: better than .xlsx. But still unusable.

Reverted to release 7.6.5.2 (AARCH64): normal speed.
Thanks,
Franco
Comment 1 m_a_riosv 2024-03-21 01:06:22 UTC
Please test in safe mode, Menu/Help/Restart in Safe Mode
Comment 2 Haris 2024-04-02 04:17:26 UTC
Thank you for reporting the bug. Please attach a sample document, as this makes it easier for us to verify the bug. 

I have set the bug's status to 'NEEDINFO'. Please change it back to 'UNCONFIRMED' once the requested document is provided.

(Note that the attachment will be public, remove any sensitive information before attaching it.
See the QA FAQ Wiki for further detail.)
Comment 3 Franco 2024-04-19 16:18:55 UTC
Hello!
Excuse me for late answer.
Tested in safe mode, with release 24.2.2: still very slow and unusable.
The files I am working with contain personal financial information: cannot share them.
I have tried with  very simple file, containing monthly bank records (just 143 lines) and it is fast even in normal mode.
Comment 4 Franco 2024-04-21 12:39:19 UTC
Created attachment 193784 [details]
File very slow to open and operate on
Comment 5 Franco 2024-04-21 12:40:01 UTC
I have obfuscated the file by changing all letters to "a".
Comment 6 m_a_riosv 2024-04-21 15:45:08 UTC
It is not slow for me working with it, a bit slow to load.

Perhaps because there are rows with yellow background for the whole row.
Test deleting that format, select them and apply background color with no fill.

Or maybe the issue is with the link to the external file, you can try with Menu/Edit/Link to external files — Break the link.

BTW, doesn't look a good idea to keep working with XLS files, even for MS it is an unmaintained format.

Working with LibreOffice the better is work with ods, new MS versions are able to open it, or only if you need to share it to people without LibreOffice, use the XLSX format.
Comment 7 ady 2024-04-21 16:09:40 UTC
I tested attachment 193784 [details] on Windows (different OS and Hardware than comment 0) with several versions of LO Calc, starting from LO 7.3 up to a recent (but not the very latest) 24.8 alpha.

With each newer version, it takes longer and longer time to open the file.

STR (with each LO version):

1. Open attachment 193784 [details]. Take note of the time it takes to open.
2. Save as a new name_version (with the same xls file type).
3. Close the original file.
4. Open the newly created file. Take note of the time it takes to open.
5. Select all worksheets.
6. Select all cells.
7. Clear Direct Formatting (on Windows, [CTRL]+[M], or use the icon on the toolbar).
7.1. (Optional) Unselect worksheets.
8. Save and close the file.

9. Open the file saved in step 8. Note that now the time to open the file is much shorter than in step 4, whichever version of LO Calc is being used.


I have also tested other properties in the original file (e.g. un-splitting each worksheet), but deleting the direct formatting has the most impact (of the properties I tested).


Conclusions:

* Newer versions are taking more time than older versions of Calc on the same xls file.

* Something in the direct formatting is causing some delay on this XLS file. Whether there is some formatting attribute that was not supported before, IDK.

Note:
* I have not tested saving with other file formats.

* In recent days, there have been some new commits aimed at improving XLS performance. This procedure might need to be re-tested in a few days (or weeks) with a newer LO 24.8 alpha in order to see whether the original delays are still reproduced.
Comment 8 ady 2024-04-21 16:30:02 UTC
(In reply to m_a_riosv from comment #6)

> Perhaps because there are rows with yellow background for the whole row.

Setting attributes (or references) to _whole_ rows or columns has been present in several performance-related reports.

While users could try to reduce the problems by selecting only the relevant area instead of entire rows/columns, LO Calc should try to improve the performance in these cases anyway, considering that selecting entire rows/columns to perform some action is a very frequent procedure by common users (and UX-wise, they are not wrong).
Comment 9 Franco 2024-04-21 17:12:21 UTC
(In reply to m_a_riosv from comment #6)
> It is not slow for me working with it, a bit slow to load.
> 
> Perhaps because there are rows with yellow background for the whole row.
> Test deleting that format, select them and apply background color with no
> fill.
> 

Did it, all over the file. No improvement.

> Or maybe the issue is with the link to the external file, you can try with
> Menu/Edit/Link to external files — Break the link.

Did it. No improvement.
But I think there is a bug. After I broke the (only) external link, the "Menu/Edit/Link to external files — Break the link." menu element is gray, meaning, I suppose, that there are no more external links. Yet, when I open the file, is asks me whether I want to allow updating the external links!
I am attaching the .xls as it is after breaking external links.

> 
> BTW, doesn't look a good idea to keep working with XLS files, even for MS it
> is an unmaintained format.
> 
> Working with LibreOffice the better is work with ods, new MS versions are
> able to open it, or only if you need to share it to people without
> LibreOffice, use the XLSX format.

Thank you very much for the suggestion: I am more than happy to get rid of .xls!!
Comment 10 Franco 2024-04-21 17:18:34 UTC
Created attachment 193788 [details]
Thw example file with yellow background removed and external link broke
Comment 11 m_a_riosv 2024-04-21 22:58:38 UTC
Created attachment 193789 [details]
The last sample file, cleaned of data and format beyond the last in every sheet.

The last sample file, cleaned of data and format beyond the last in every sheet. Load quick, a couple of seconds.

There are sheets with cell borders up to the last row and last column, and cell backgrounds.

Maybe the issue is as LO has more columns than xls and the format of the last xls column is applied to the rest of columns automatically.

Hi @Ady, I remember this matter was discussed somewhere, perhaps in another bug.
Comment 12 m_a_riosv 2024-04-21 22:59:17 UTC
Version: 24.2.2.2 (X86_64) / LibreOffice Community
Build ID: d56cc158d8a96260b836f100ef4b4ef25d6f1a01
CPU threads: 16; OS: Windows 10.0 Build 22631; UI render: Skia/Raster; VCL: win
Locale: es-ES (es_ES); UI: en-US
Calc: CL threaded