[Libreoffice-bugs] [Bug 39179] FILEOPEN: Writer has dump and takes very long to open DOCX with 973 footnotes

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Sat Nov 30 07:02:55 UTC 2019


https://bugs.documentfoundation.org/show_bug.cgi?id=39179

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |jluth at mail.com

--- Comment #51 from Justin L <jluth at mail.com> ---
The entire footnote.xml file is opened and read for every single footnote
reference. A huge speed-up could be attained by parsing once and storing the
result in an array (at the cost of theoretically infinite memory). But I'm an
inadequate programmer to handle that task...

Some useful commentary from commit 330b860205c7ba69dd6603f65324d0f89ad9cd5f
Author: Miklos Vajna
Date:   Wed Sep 4 16:08:49 2013 +0200
    tdf#68787 DOCX import: handle when w:separator is missing for footnotes
...
    2) The footnote stream isn't read by the importer, only when the main
    stream references the footnote one, the relevant part of it is parsed.
    At the moment we always parse the first (special, "separator") entry in
    the footnote stream, that may be optimized later if it becomes a
    bottleneck.

That optimization of only parsing the separator once instead of 973 times
yields only a minor improvement (<10%). gerrit.libreoffice.org/84104

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20191130/19b44708/attachment.html>


More information about the Libreoffice-bugs mailing list