Speed up sending request to ksysguardd

Authored by jpalecek on Dec 9 2019, 5:13 PM.

Description

Speed up sending request to ksysguardd

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

Reviewers: Plasma, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D23595

Details

Committed
davidedmundsonDec 9 2019, 5:18 PM
Reviewer
Plasma
Differential Revision
D23595: Speed up sending request to ksysguardd
Parents
R111:8403c3f30890: Update version number for 5.17.4 GIT_SILENT
Branches
Unknown
Tags
Unknown