[Libreoffice-bugs] [Bug 61558] High CPU load when scrolling a document with many comments

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Feb 18 14:42:04 UTC 2019


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

--- Comment #51 from Noel Grandin <noelgrandin at gmail.com> ---
Some notes from my unsucessful attempt to fix this:

(1) I can fix the typing part by removing the WB_DIALOGCONTROL flag from the
SwEditWin constructor. The time is being spent searching through tons of child
windows on every key stroke. I don't think this flag is necessary because we're
not doing dialog things in the main window.
But I'm probably wrong and there is some weird reason we need it.

(2) I can fix the paging/scrolling part by commenting out the 
     if ( pPostItMgr ) // #i88070#
     {
        pPostItMgr->Rescale();
        pPostItMgr->CalcRects();
        pPostItMgr->LayoutPostIts();
     }
code in void SwViewShell::VisPortChgd
As far as I can tell, the UI still works fine without those lines of code,
because don't actually need to run the bulk of layout when the viewport
changes.

According to the bug report in the comment
    https://bz.apache.org/ooo/show_bug.cgi?id=88070
they are there because accessibility stuff is being calculated during the
layout loop. So one possible fix would be to pass some sort of flag down to
CalcRects and LayoutPostIts to say "only do the accessibility stuff"

-- 
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/20190218/c8805f46/attachment.html>


More information about the Libreoffice-bugs mailing list