qt5base-lts/tests/benchmarks/gui
David Faure 434c522695 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>
2016-08-05 09:56:12 +00:00
..
animation Update copyright headers 2015-02-11 06:49:51 +00:00
graphicsview Update copyright headers 2015-02-11 06:49:51 +00:00
image fix usage of wince scope 2015-06-05 10:29:10 +00:00
itemviews Update copyright headers 2015-02-11 06:49:51 +00:00
kernel Update copyright headers 2015-02-11 06:49:51 +00:00
math3d Update copyright headers 2015-02-11 06:49:51 +00:00
painting Improve performance of QColor::name, now more than 4 times faster 2016-08-05 09:56:12 +00:00
styles Update copyright headers 2015-02-11 06:49:51 +00:00
text Fix users of QTextLayout::additionalFormats to use the new API 2015-05-30 10:56:24 +00:00
gui.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00