https://bugs.freedesktop.org/show_bug.cgi?id=88518

            Bug ID: 88518
           Summary: FILEOPEN RTF: PDF export speeds up document build
                    times significantly
           Product: LibreOffice
           Version: 4.3.5.2 release
          Hardware: x86-64 (AMD64)
                OS: Windows (All)
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: Writer
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 112370
  --> https://bugs.freedesktop.org/attachment.cgi?id=112370&action=edit
Simple but huge repro file.

Some general remarks:
First off, sorry for the huge attachement but to really see what this bug
report is about we need a huge document that takes a while to load. All timings
mentioned here were taken on Windows 7 running on an Intel Core 2 Duo E8400
clocked at 2GHz. So if your machine is faster or slower your mileage may vary.
:)
To be able to properly repro the issue I decided to use a document fairly
similar to the real life document I am working on, but with the original text
replaced by the "Lorem ipsum" text.
What I call "build & display" is what I assume LibreWriter does once it has
finished loading the RTF file (the document's first page is now visible) and
has started parsing its content, building the document structure from it and
displaying what has been built already. Once this "build & display" process
ends, the document with all of its pages is fully displayed in LibreWriter.

Problem description: 
While the attached RTF file takes a significant time to fully "build & display"
all of its content in LibreWriter, immediately (after loading has finished)
starting an export to PDF will speed up this "build & display" time for the
document tremendously.

Steps to reproduce:
- Load the attached .rtf file.
- Measure the time it takes for all ~267 pages to build and display.
- Close the document.
- Load the attached .rtf file again.
- Start measuring the time again.
- Immediately after loading has finished (and "building and displaying" has
started) select File > Export as PDF, hit Export and save to some random
location.
- Once exporting the PDF has finished, the document will also have finished
"building and displaying" all ~267 pages.
- Stop measuring the time.

Current behavior:
Building and displaying the document without doing anything takes ~75 seconds
on my machine.
Building and displaying the document while exporting it as PDF at the same time
takes ~16 seconds on my machine.

Expected behavior:
Building and displaying the document without doing anything should not take
longer than it takes when exporting the PDF at the same time.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to