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.
Details
Details
- Reviewers
mart - Commits
- R169:c56e3e06729a: Optimise setting up the palette
Tried with Discover, KAlgebra and Kirgami Gallery
Diff Detail
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.