summaryrefslogtreecommitdiffstats
path: root/doc/global/template
diff options
context:
space:
mode:
authorDavid Faure <david.faure@kdab.com>2016-08-04 10:01:21 +0200
committerDavid Faure <david.faure@kdab.com>2016-08-05 09:56:12 +0000
commit434c52269564c84e3ea57242b7aaa2fd7cad3f54 (patch)
treefa3818b5b59278d6f37e7bca834b6f908f15b885 /doc/global/template
parenteb4bcdd8cec77c558cc75d31730cff89852dd684 (diff)
Improve performance of QColor::name, now more than 4 times faster
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>
Diffstat (limited to 'doc/global/template')
0 files changed, 0 insertions, 0 deletions