summaryrefslogtreecommitdiffstats
path: root/tests/benchmarks/gui/painting/qcolor/qcolor.pro
Commit message (Collapse)AuthorAgeFilesLines
* Improve performance of QColor::name, now more than 4 times fasterDavid Faure2016-08-051-0/+7
Before: HexRgb: 0.00230 ms per iteration, HexArgb: 0.00290 ms per iteration After: HexRgb: 0.00051 ms per iteration, HexArgb: 0.00061 ms per iteration This showed up as a relevant optimization when profiling KIconLoader which uses QColor::name() as part of the key -- thanks to Mark Gaiser for the investigation and first suggestion of a solution. I have also seen customer code writing a replacement for QColor::name() because it was too slow to be used as a hash key. Change-Id: I009ccdd712ea0d869d466e2c9894e0cea58f0e68 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>