Optimise setting up the palette
ClosedPublic

Authored by apol on Jul 26 2018, 1:56 AM.

Details

Summary

For every setBrush/setColor we're initialising a new QBrush instance that
allocates some space in memory. At the moment we were creating and destroying
QBrush instances like crazy, this check aloen saves 23K calls only starting
Discover.

Test Plan

Tried with Discover, KAlgebra and Kirgami Gallery

Diff Detail

Repository
R169 Kirigami
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
apol created this revision.Jul 26 2018, 1:56 AM
Restricted Application added a project: Kirigami. · View Herald TranscriptJul 26 2018, 1:56 AM
Restricted Application added a subscriber: plasma-devel. · View Herald Transcript
apol requested review of this revision.Jul 26 2018, 1:56 AM
apol updated this revision to Diff 38603.Jul 27 2018, 2:06 PM

remove debug info

mart accepted this revision.Jul 27 2018, 2:07 PM
This revision is now accepted and ready to land.Jul 27 2018, 2:07 PM
This revision was automatically updated to reflect the committed changes.