Optimise setting up the palette

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

Description

Optimise setting up the palette

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

Reviewers: mart

Reviewed By: mart

Subscribers: plasma-devel

Tags: Kirigami

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

Details

Committed
apolJul 27 2018, 2:32 PM
Reviewer
mart
Differential Revision
D14387: Optimise setting up the palette
Parents
R169:594eb923a591: AbstractApplciationItem shouldn't have its own size, only implicit
Branches
Unknown
Tags
Unknown