systemmonitor: Optimise source updates.

Authored by roberts on Oct 23 2016, 12:38 PM.



Profiling indicates the highest CPU usage process during idle is the
system monitor engine. This attempts to get rid of the most obvious
usage, which was QStringList::indexOf, and QString temporaries.

Test Plan

Profiling only, as well as no local functional regression.

Diff Detail

R120 Plasma Workspace
Automatic diff as part of commit; lint not applicable.
Automatic diff as part of commit; unit tests not applicable.
roberts updated this revision to Diff 7618.Oct 23 2016, 12:38 PM
roberts retitled this revision from to systemmonitor: Optimise source updates..
roberts updated this object.
roberts edited the test plan for this revision. (Show Details)
Restricted Application added a project: Plasma. · View Herald TranscriptOct 23 2016, 12:38 PM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
davidedmundson accepted this revision.Oct 24 2016, 5:07 PM
davidedmundson added a reviewer: davidedmundson.
This revision is now accepted and ready to land.Oct 24 2016, 5:07 PM
This revision was automatically updated to reflect the committed changes.