Bug 159194 - Improve loading time for simple, large text document
Summary: Improve loading time for simple, large text document
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
24.8.0.0 alpha0+
Hardware: All Windows (All)
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: perf
Depends on:
Blocks: console-noise
  Show dependency treegraph
 
Reported: 2024-01-15 13:33 UTC by Gabor Kelemen (allotropia)
Modified: 2024-01-30 01:21 UTC (History)
1 user (show)

See Also:
Crash report or crash signature:


Attachments
Example file from Writer (31.65 KB, application/vnd.oasis.opendocument.text)
2024-01-15 13:33 UTC, Gabor Kelemen (allotropia)
Details
Flamegraph made under Ubuntu 22, own build (816.32 KB, image/svg+xml)
2024-01-15 13:35 UTC, Gabor Kelemen (allotropia)
Details
Flamegraph of an empty document Writer opening, for reference (501.26 KB, image/svg+xml)
2024-01-15 13:36 UTC, Gabor Kelemen (allotropia)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2024-01-15 13:33:59 UTC
Created attachment 191947 [details]
Example file from Writer

Attached example file contains about 100 pages of simple text.
Opening this file takes a short time, but even that is more than the same content saved as docx is opened in Word.
This report is to explore options to reduce load times as much as possible in this simple content case.

1. Open attached file in current nightly from the commandline, using 
time OOO_EXIT_POST_STARTUP=1 program/soffice Ente-Large.odt

First (cold cache) start gives:

real    0m13,085s
user    0m0,000s
sys     0m0,015s

Warm cache gives:

real    0m8,486s
user    0m0,015s
sys     0m0,000s

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 25276df12abd9d002f7f899900434617b256f745
CPU threads: 15; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: de-DE
Calc: threaded

(based on the amount of CLI output, this seems to be a dbgutil build, but still)
Comment 1 Gabor Kelemen (allotropia) 2024-01-15 13:35:17 UTC
Created attachment 191948 [details]
Flamegraph made under Ubuntu 22, own build
Comment 2 Gabor Kelemen (allotropia) 2024-01-15 13:36:24 UTC
Created attachment 191949 [details]
Flamegraph of an empty document Writer opening, for reference

Maybe something sticks out here as well.
Comment 3 Stéphane Guillou (stragu) 2024-01-30 01:12:54 UTC
First open, I get:

real	0m6,082s
user	0m6,092s
sys	0m0,448s

Second time:

real	0m5,906s
user	0m5,726s
sys	0m0,459s

With:

Version: 24.8.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 2cedb1a19ad605df4e148589e9027512e4dd9265
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

In the terminal, a flood of:

warn:xmloff:201930:201930:xmloff/source/text/txtparai.cxx:358: unknown attribute http://www.w3.org/1999/xlink xlink:type value=simple

If there's potential for improvement, let's do it.

Gabor, any reason for the Windows-only report?