[Libreoffice-bugs] [Bug 109200] Draw seems to lock, calls sbrk() like crazy, and takes 5' opening a pdf

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Mar 6 12:15:17 UTC 2020


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

--- Comment #11 from Jiri Slaby <jirislaby at gmail.com> ---
Created attachment 158444
  --> https://bugs.documentfoundation.org/attachment.cgi?id=158444&action=edit
perf report of draw

According to these perf measurements, Draw seems to spend significant time in
pdfi::PageElement::resolveUnderlines which contains this FIXME:
    // FIXME: currently the algorithm used is quadratic
    // this could be solved by some sorting beforehand


That function searches the document for horizontal lines and removes them if
they underline some text (and makes the text underlined instead). Well, the
document contains many horizontal lines.

The algorithm should be optimized or should time out after a while (not 5
minutes).

-- 
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/20200306/a54f6d11/attachment.htm>


More information about the Libreoffice-bugs mailing list