Bug 151216 - LibreOffice set cell formatting up to 40x slower in v7.3 and v7.4
Summary: LibreOffice set cell formatting up to 40x slower in v7.3 and v7.4
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
7.3.0.1 rc
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks:
 
Reported: 2022-09-28 15:17 UTC by arthur wilson
Modified: 2022-10-20 03:50 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Simple Macro recreating performance issue in v7.3+ (114.39 KB, application/vnd.oasis.opendocument.spreadsheet)
2022-09-28 15:17 UTC, arthur wilson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description arthur wilson 2022-09-28 15:17:09 UTC
Created attachment 182708 [details]
Simple Macro recreating performance issue in v7.3+

Setting cell property value takes significantly longer in v7.3+, runs quickly in v7.2.7.2. attached is a macro that runs setPropertyValue for horizontal justification and font size over 3 tests of 100, 200 and 1000 records. These are our test results for reference:

LibreOffice 7.2.7.2
Run 1: 5 seconds, 3 seconds and 28 seconds
Run 2: 1 second, 1 second, 7 seconds

LibreOffice 7.4
Run 1: 33 seconds, 62 seconds, 321 seconds
Run 2: 30 seconds, 59 seconds, 284 seconds
Comment 1 Rafael Lima 2022-09-28 22:18:05 UTC
I could not reproduce the issue. Basically I got the same performance in 7.2, 7.3 and 7.4. What OS are you using?

Here are my results:

LibreOffice 7.2.7.2
Run 1: 2 seconds, 2 seconds and 18 seconds
Run 2: <1 second, 1 second, 3 seconds

LibreOffice 7.3.6.2
Run 1: 2 seconds, 2 seconds and 12 seconds
Run 2: <1 second, 1 second, 3 seconds

LibreOffice 7.4.1.2
Run 1: 2 seconds, 2 seconds and 12 seconds
Run 2: <1 second, 1 second, 3 seconds

System info

Version: 7.2.7.2 / LibreOffice Community
Build ID: 8d71d29d553c0f7dcbfa38fbfda25ee34cce99a2
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL

Version: 7.3.6.2 / LibreOffice Community
Build ID: c28ca90fd6e1a19e189fc16c05f8f8924961e12e
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Calc: CL

Version: 7.4.1.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 16; OS: Linux 5.15; UI render: default; VCL: kf5 (cairo+xcb)
Locale: pt-BR (pt_BR.UTF-8); UI: en-US
Ubuntu package version: 1:7.4.1~rc2-0ubuntu0.22.04.1~lo1
Calc: threaded
Comment 2 arthur wilson 2022-09-29 16:17:52 UTC
Our local machines are running x64 Windows. We saw similar issues on our Linux RHEL 8.5 machines.
Comment 3 arthur wilson 2022-09-29 16:19:54 UTC
need to edit my previous comment: RHEL 8.6*
Comment 4 Rafael Lima 2022-09-29 17:28:17 UTC
(In reply to arthur wilson from comment #2)
> Our local machines are running x64 Windows. We saw similar issues on our
> Linux RHEL 8.5 machines.

I'm running on Kubuntu 22.04.

Let's wait and see if anyone else can reproduce your results.
Comment 5 Roman Kuznetsov 2022-10-04 19:19:30 UTC
Funny:

0 3 23 sec in

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 85353c42de80e7492f5c80499e18375f942c75c9
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Vulkan; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

but

15 27 168 sec in

Version: 7.4.0.0.alpha1+ (x64) / LibreOffice Community
Build ID: f3b5cb5a17a451c9e7d9b47b5e8854c5e126801f
CPU threads: 8; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: ru-RU
Calc: threaded

I would wait to 7.4.2 release and retest it. It seems already fixed in master. Or we can search the commit if it will still not fixed in 7.4.2.
Comment 6 Roman Kuznetsov 2022-10-19 18:54:22 UTC
Arthur could you please retest it yourself in latest 7.4.2 version?
Comment 7 arthur wilson 2022-10-19 20:10:51 UTC
Sure, I'll update with my findings. Thanks
Comment 8 arthur wilson 2022-10-19 21:31:29 UTC
Hi Roman. I tested our platform against 7.4.2.3 and everything is looking good.

we can close this ticket thanks!
Comment 9 QA Administrators 2022-10-20 03:44:53 UTC Comment hidden (obsolete)