Download it now!
Bug 116400 - Very time lengthy PDF-generation ( see comment 9 )
Summary: Very time lengthy PDF-generation ( see comment 9 )
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
6.0.2.1 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:pdf, perf
Depends on:
Blocks: PDF-Export
  Show dependency treegraph
 
Reported: 2018-03-14 13:15 UTC by Daniel Grigoras
Modified: 2019-12-19 11:10 UTC (History)
6 users (show)

See Also:
Crash report or crash signature:


Attachments
Flamegraph (132.23 KB, application/x-bzip)
2019-12-18 20:25 UTC, Julien Nabet
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Grigoras 2018-03-14 13:15:15 UTC
Description:
I tested PDF-generation of a 3700-page long masterdocument (77 subdocuments loaded) with LibreOfficeDev 6.0.0.0.alpha0 and it turned out that the PDF was produced in just about 20 minutes, as opposed to 1hr 30min with LibreOffice 6.0.2.1.
Please address this issue.

Steps to Reproduce:
-

Actual Results:  
-

Expected Results:
-


Reproducible: Always


User Profile Reset: No



Additional Info:


User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 OPR/51.0.2830.55
Comment 1 Buovjaga 2018-03-14 15:54:29 UTC Comment hidden (obsolete)
Comment 2 Daniel Grigoras 2018-03-14 16:34:36 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2018-03-14 18:44:55 UTC
(In reply to Buovjaga from comment #1)
> Can you share a test case? Or maybe you have some older report with a
> similar masterdocument already that you can point to?
> Note that we have raised the attachment max. size to 30 megabytes now.

Thanks. For speeding up the test, I only inserted subdocs 01 and 02.
In 6.0.2 the exporting took 1 min 10 seconds.
In 6.1 (master build), it only took 7 seconds!

So good news for you, I think.

You could test (with a minimal setup like myself) with a master build and see how it goes: https://dev-builds.libreoffice.org/daily/master/Win-x86_64@42/current/

Arch Linux 64-bit
Version: 6.1.0.0.alpha0+
Build ID: 6a9326803c01f4c9bc7da855053ce4e80646fad8
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on March 14th 2018

Arch Linux 64-bit
Version: 6.0.2.1.0+
Build ID: 6.0.2-1
CPU threads: 8; OS: Linux 4.15; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Comment 4 Daniel Grigoras 2018-03-16 10:28:45 UTC
(In reply to Buovjaga from comment #3)

Indeed, PDF-generation is very fast in LibreOfficeDev 6.1.
Looking forward to having this improvement integrated in the official release.
Comment 5 Buovjaga 2018-03-16 12:40:52 UTC
I tried with the upcoming 6.0.3 on Windows and it was fairly quick. I was actually going to bisect the issue as you said it was fast in 6.0.0.0 alpha0.
Let's close.
Comment 6 Daniel Grigoras 2018-03-16 13:46:10 UTC
(In reply to Buovjaga from comment #5)

6.1 alpha generates the PDF faster than 6.0 alpha.
Comment 7 Daniel Grigoras 2018-08-30 10:17:41 UTC
This issue has resurfaced in LibreOffce 6.1.0.3
Comment 8 Telesto 2018-08-30 10:30:32 UTC
(In reply to Daniel Grigoras from comment #7)
> This issue has resurfaced in LibreOffce 6.1.0.3

Didn't check, but would suspect the same cause as for for bug 119340 or bug 119173 ( HFONT fallback handing / lifecycle)
Comment 9 Xisco Faulí 2019-12-18 14:52:52 UTC
Dropdop's link is no longer available. Instead we can use this file

- attachment 140185 [details] (bug 116068)

it takes

real	6m48,663s
user	6m41,552s
sys	0m2,257s

in

Version: 6.5.0.0.alpha0+
Build ID: fb1eac64df88baae9f211d052793773686c0e180
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3; 
Locale: ca-ES (ca_ES.UTF-8); UI-Language: en-US
Calc: threaded

while in

Version: 4.3.0.0.alpha1+
Build ID: c15927f20d4727c3b8de68497b6949e72f9e6e9e

it takes

real	20m52,649s
user	19m44,290s
sys	0m31,152s

so there has been a real improvements over the years...
Comment 10 Xisco Faulí 2019-12-18 14:53:33 UTC
@Julien, would it be possible to have a perf chart for comment 9 ?
Comment 11 Julien Nabet 2019-12-18 15:03:01 UTC
(In reply to Xisco Faulí from comment #10)
> @Julien, would it be possible to have a perf chart for comment 9 ?

No pb, I'll do this after my day time job.
Comment 12 Julien Nabet 2019-12-18 20:25:03 UTC
Created attachment 156654 [details]
Flamegraph

Here's a Flamegraph retrieve on pc Debian x86-64 with master sources updated today.
Comment 13 Xisco Faulí 2019-12-19 10:22:37 UTC
(In reply to Julien Nabet from comment #12)
> Created attachment 156654 [details]
> Flamegraph
> 
> Here's a Flamegraph retrieve on pc Debian x86-64 with master sources updated
> today.

Hi Noel,
I thought you might be interested in this issue. Maybe there something else that we can benefit from compared to bug 112989
Comment 14 Noel Grandin 2019-12-19 11:05:32 UTC
This looks exactly like the PDF stuff I improved this week, if that's not good enough, there is nothing more I can do
Comment 15 Xisco Faulí 2019-12-19 11:10:49 UTC
(In reply to Noel Grandin from comment #14)
> This looks exactly like the PDF stuff I improved this week, if that's not
> good enough, there is nothing more I can do

ok, thank you very much for checking