Created attachment 140551 [details]
Example file from Excel 2013
FILEOPEN XLSX Opening an .xlsb file with LibreOffice Calc is much slower than opening the same file with .xlsx extension
The main problem here is the time difference of opening an .xlsb file compared to an .xlsx file. The reason of the slower file load is the conversion of a function formula. Certain references in an .xlsb file were replaced with another function.
Steps to reproduce:
1. Create a new spreadsheet with Microsoft Excel 2010/2013/2016
2. Insert a three columns table to the spreadsheet.
3. Insert a letter to the first column (Column1) and insert numbers to the second column (Column2) from the first row of the table to the 10000th row at least. (just to see the import of time difference)
4. Insert this function “=IF(A4="";"";IF(COUNTIF(Táblázat1[Oszlop2];B4)>1;"dupla!";"OK"))” to the third column (Column3) from the first row of the table to the 10000th row at least.
5. Save the file as *.XLSX and save as an *.XLSB file with Microsoft Excel.
6. First, open the *.XLSX file with LibreOffice Calc. (it will be opened very fast and the function remains unchanged)
7. Second, open the *.XLSB file with LibreOffice Calc. (it will be opened much more slower than the *.XLSX file and the function changed)
After we opened the *.XLSB file the function looked like this: “=IF(A21="";"";IF(COUNTIF(OFFSET(Táblázat1;1;1;ROWS(Táblázat1)-1;1);B21)>1;"dupla!";"OK"))”. The “Táblázat1[Oszlop2]” reference was replaced with “OFFSET(Táblázat1;1;1;ROWS(Táblázat1)-1;1)”. Because of this the file opened much more slower than an *.XLSX file.
We met an *.XLSB file which contains much more data (25000 Kb) than the example file. Because of this problem LibreOffice Calc 18.104.22.168 could not open that file and soffice.exe/soffice.bin was frozen.
If we open the *.XLSB file with LibreOffice Calc and save as *.XLSX (because in the LibreOffice Calc we cannot save as *.XLSB), the modified formula was saved of course. And we open it with Microsoft Excel we got a #NAME? error message in the cells.
The function formula should not be modified after we import an *.XLSB file (because of the loading time). In the *.XLSX file the function formula was not modified.
Build ID: c678dc5309741097d9b0265f03dd279a8794d256
CPU threads: 4; OS: Windows 6.1; UI render: default;
TinderBox: Win-x86@42, Branch:libreoffice-6-0, Time: 2017-12-28_04:21:33
Locale: hu-HU (hu_HU); Calc: group
Created attachment 140552 [details]
The same example as xslx from Excel 2013
Created attachment 140553 [details]
The example file opened in Excel and Calc
Sorry for the Hungarian function names.
In Excel, HA = IF, DARABTELI = COUNTIF.
In Calc, HA = IF, DARABTELI = COUNTIF, ELTOLÁS = OFFSET, SOROK = ROWS.
The latter two were not present in Excel.
Created attachment 140554 [details]
The example XLSX file saved by LO 6. No change here.
Created attachment 140555 [details]
The example XLSB file saved by LO 6 as XLSX. Formula has changed.
Created attachment 140556 [details]
The exported XLSX opened in Excel and LO with #NAME error in Excel
Assuming this is confirmed by the Hungarian team -> NEW
Dear Gabor Kelemen,
To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.
There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.
If you have time, please do the following:
Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/
If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.
Please DO NOT
Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not
appropriate in this case)
If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from http://downloadarchive.documentfoundation.org/libreoffice/old/
2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword
Feel free to come ask questions or to say hello in our QA chat: https://kiwiirc.com/nextclient/irc.freenode.net/#libreoffice-qa
Thank you for helping us make LibreOffice even better for everyone!
still repro in
Версия: 22.214.171.124.alpha0+ (x64)
ID сборки: 32dcf3f0fdafcf44457842a8aa4f54d30d856ca9
Потоков ЦП: 4; ОС:Windows 10.0 Build 17763; Отрисовка ИП: GL; VCL: win;
Локаль: ru-RU (ru_RU); Язык интерфейса: ru-RU
It took over 10 sec for XLSB and only 2 sec for XLSX
Julien, can you create your nice flamegraph for this case?
Created attachment 156078 [details]
Here's a Flamegraph retrieved on pc Debian x86-64 with master sources updated today + enable-symbols
Noel, possibly you'll can look at it? Thanks
This is not a perf issue, this is some kind of document import/conversion fidelity issue
Difference still observed
Version: 126.96.36.199.alpha0+ (x64) / LibreOffice Community
Build ID: 9c930c4f3109d123c0831d0fcecf9c8b32e5bbc7
CPU threads: 2; OS: Windows 10.0 Build 19042; UI render: default; VCL: win
Locale: fi-FI (fi_FI); UI: en-US
Version: 188.8.131.52.alpha0+ (x64) / LibreOffice Community
Build ID: 9d1d668a608cc5b406601c2f7f3d8581e8f47d1c
CPU threads: 4; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
opens the XLSB file just instantly
Closed as WFM