[Libreoffice-bugs] [Bug 113105] CPU running at 100% when adding a table above a large document ( since LibO 5.1)

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Fri Oct 13 18:58:36 UTC 2017


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

--- Comment #1 from Telesto <telesto at surfxs.nl> ---
Created attachment 136960
  --> https://bugs.documentfoundation.org/attachment.cgi?id=136960&action=edit
Bibisect log

Bibisected/bisected to:

author  Ashod Nakashian <ashodnakashian at yahoo.com>      2015-07-05 16:05:26
(GMT)
committer       Caolán McNamara <caolanm at redhat.com>    2015-07-15 07:46:01
(GMT)
commit  b0fde7a912ff3aa370496802f20895b1158b072c (patch)
tree    7b53cc78cc2291ccf2a28083082b37fefb8a2185
parent  82da70787ac12ec9d5791eeac6b48535737ad5b3 (diff)
tdf#38837 Reduce power consumption by minimizing idle timers
Both the document statistics- and state-manager have their
own modified flags. There is a cyclic dependency between the
the two in that updating the document's statistics also marks
the document as modified. Of course when a document is edited
the statistics modified flag is set to trigger an update.

To avoid a perpetual cycle, the statistics manager resets the
document's modified state to that before setting the new
statistics. However, this doesn't reset the statistics
modified flag, which was set when the document was modified
by setting the new statistics. Hence, the statistics thinks
there are modifications in the document when there isn't.

This patch is to make DocumentStateManager::ResetModified()
symmetrical to DocumentStateManager::SetModified() by
reseting the modified flag of the statistics manager.

The idle CPU drops to nil on unmodified documents after this.
However, for modified documents the statistics is recalculated
perpetually until the document is saved. This will need a
different patch to fix.

-- 
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/20171013/e00b6db2/attachment.html>


More information about the Libreoffice-bugs mailing list