D23595: Speed up sending request to ksysguardd

Jiří Paleček noreply at phabricator.kde.org
Sat Aug 31 03:22:09 BST 2019


jpalecek created this revision.
Herald added a project: Plasma.
Herald added a subscriber: plasma-devel.
jpalecek requested review of this revision.

REVISION SUMMARY
  While investigating bug 407526, I discovered that most of the time is spent in SensorAgent::sendRequest. This is because it searches the whole queue lineraly, which could take a lot of time if there's a lot of requests. This patch speeds it up by using a `QSet` of outstanding requests, obviating the need to search the queues.
  
  Part of T11473: #407526: plasma + ksysguardd causing high cpu load <https://phabricator.kde.org/T11473>

REPOSITORY
  R111 KSysguard Library

BRANCH
  master

REVISION DETAIL
  https://phabricator.kde.org/D23595

AFFECTED FILES
  ksgrd/SensorAgent.cpp
  ksgrd/SensorAgent.h

To: jpalecek
Cc: plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, Pitel, ZrenBot, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20190831/067b63cf/attachment-0001.html>


More information about the Plasma-devel mailing list