Bug 133125 - FILEOPEN ODT: Opening file with 6 embedded font slow
Summary: FILEOPEN ODT: Opening file with 6 embedded font slow
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.0.0.0.alpha1+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-17 16:00 UTC by Telesto
Modified: 2020-06-03 03:50 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (1021.48 KB, application/vnd.oasis.opendocument.text)
2020-05-17 16:00 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2020-05-17 16:00:23 UTC
Description:
FILEOPEN ODT: Opening file with 6 embedded font slow

Steps to Reproduce:
1. Open the attached file
2. Takes 20 seconds for me (have a bunch of pre-installed fonts)

Note there is a odd difference.. I'm having LibreOffice 4.4.7.2 as default. When double clicking the file without LibreOffice running it opens fast. Opening the file from a running instance is slow. Not sure if this also the case for newer versions..

It's fast, with an already running instance in 4.0.0.3

Actual Results:
20 seconds

Expected Results:
4/5 seconds


Reproducible: Always


User Profile Reset: No



Additional Info:
Repro with
Version: 7.0.0.0.alpha1+ (x64)
Build ID: f9790da286f2d2fa47f1748f8cfa6172c6622ca3
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win; 
Locale: de-CH (nl_NL); UI: en-US
Calc: CL

but not with
Versie 4.0.0.3 (Bouw-id: 7545bee9c2a0782548772a21bc84a9dcc583b89)
Comment 1 Telesto 2020-05-17 16:00:39 UTC
Created attachment 160937 [details]
Example file
Comment 2 Telesto 2020-05-17 16:03:33 UTC
@Mike
Not sure if you're interested (or if this reproducible at all)..but you did some work on embedded fonts a while back
Comment 3 Xisco Faulí 2020-06-01 08:34:14 UTC
it takes

real	0m7,651s
user	0m3,687s
sys	0m0,771s


for me in

Version: 7.0.0.0.beta1+
Build ID: 59c2a8f3ceacabb3132ba1c02ab5e76e510572e9
CPU threads: 4; OS: Linux 4.19; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US
Calc: threaded
Comment 4 Mike Kaganski 2020-06-01 10:19:42 UTC
I *suppose* that this is not a problem with current LibreOffice, but rather a problem with old versions, which, when open, detect font updates from system, and start some lengthy operations that block anything font-related system-wide (including the loading document in newer version). But I can't reliably test that - I don't have that many fonts on my system, and that must be O^2 wrt number of installed fomnts.
Comment 5 Mike Kaganski 2020-06-01 10:28:15 UTC
... and also it's likely OS-dependent - we advertise temporarily-installed fonts *on Windows* system-wide, but not on other OSes IIRC.
Comment 6 Telesto 2020-06-01 12:54:49 UTC
Not sure why I reported - I don't know anymore - this.. Speed is fine with
Version: 7.1.0.0.alpha0+ (x64)
Build ID: 83c4f86f22dc37269ac6a038fe7de053c42aad6e
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: en-US (nl_NL); UI: en-US
Calc: CL