We have received a bug report via our Twitter account @LibreOfficeFR.
One of our users, being diabetic, has been noting in a XLS spreadsheet all the aliments he has been eating for a bunch of years now.
The document has two sheets and each of them has quite a bunch of rows. Most of the row has direct formatted content and some of them even have conditional formatting rules.
While the document loads rapidly on Office, the user complained it was taking a huge time to open on LibreOffice.
We have been able to reproduce the issue. While the document loads in instant on Excel (tested with latest Office 365 version), the document opens in about 1m30 on my machine with LibreOffice.
The user is still making use of Office 2000. We first thought the issue was due to that old version, but the document is nearly identical when saving from Office 365.
The issue is not due to the XLS format either. Converting the document to ods has still the same issue. The same applies if we copy paste the content of each sheet to a brand new document and save to ods directly instead of proceeding to a xls -> ods convertion from an existing XLS file.
By removing the direct formatting (by using Ctrl+M), the opening process is shorter of 20 seconds.
Arnaud Versini has begun to bisect the issue with cachegrind, and we realized a method calling C++ Vector is being called a lot of time (the hole list being scanned over and over again at each iteration). This is a good start to search of possible optimizations.
Joined to this bug report is the XLS file (original file). We are also providing a ods conversion where direct formatting has been removed.
Steps to Reproduce:
1. Simpy open the document and see for yourselves.
Pretty slow to load
Nearly instant loading.
User Profile Reset: Yes
Created attachment 147463 [details]
Original Excel file
Created attachment 147464 [details]
Ods conversion without direct formatting
Created attachment 147465 [details]
(In reply to William Gathoye from comment #0)
> We have been able to reproduce the issue. While the document loads in
> instant on Excel (tested with latest Office 365 version), the document opens
> in about 1m30 on my machine with LibreOffice.
i can not confirm a huge delay with
Version: 18.104.22.168 (x64)
CPU-Threads: 4; BS: Windows 10.0; UI-Render: Standard;
Gebietsschema: de-DE (de_DE); Calc:
Win10 Pro x64, Core i5-3320 2,6 GHZ, 8GB, 256 GB SSD
attached *.xls loads (including recalc) within 18 seconds, *.ods
takes about 30 seconds.
what i noticed: the file has a reference to an external file
Hmm, so opens in about ~3sec to protected view on Excel 2016
On LibreOffice delay is noticeable...
On a robust Xeon (E3-1270 @3.50Ghz) / 32GB Windows 10 64-bit en-US (1803) workstation:
fully opening in about ~14sec on LibreOffice
Version: 22.214.171.124 (x64)
Build ID: 86daf60bf00efa86ad547e59e09d6bb77c699acb
CPU threads: 8; OS: Windows 10.0; UI render: default (or GL);
Locale: en-US (en_US); Calc: CL
and about the same ~14sec on LibreOffice master
Version: 126.96.36.199.alpha0+ (x64)
Build ID: 34d5e910adba4094bba1303284f9552028d0b019
CPU threads: 8; OS: Windows 10.0; UI render: GL (or default); VCL: win;
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-12-11_02:09:16
Locale: en-US (en_US); UI-Language: en-US
Major part of the problem seems to be that we insert in a std::vector at random places and this makes a lot of std::unique_ptr move.
it takes 16 seconds in
Build ID: e98bcfcc3cdad46620e3d59119b0ac262db88054
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Build ID: b21df5a993a3815cf736fe3d2eab73eee646b38e
it takes 30 seconds, so the import time has been reduced to half since then....
Since it's 16 seconds on master, which is quite acceptable IMHO, i'll decrease the severity...