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

--- Comment #1 from Telesto <[email protected]> ---
Created attachment 136960
  --> https://bugs.documentfoundation.org/attachment.cgi?id=136960&action=edit
Bibisect log

Bibisected/bisected to:

author  Ashod Nakashian <[email protected]>      2015-07-05 16:05:26
(GMT)
committer       Caolán McNamara <[email protected]>    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.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to