summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qopenglwidget.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-09-15 11:58:59 +0200
committerMarc Mutz <marc.mutz@kdab.com>2014-09-18 09:46:48 +0200
commit40d59496fb718614f78b737fc2ebc271af657280 (patch)
treef5e7d05b30a358470ed4acdcbadaa56407abdd61 /src/widgets/kernel/qopenglwidget.cpp
parent935e6a2b330789925a37e85b171315044dac2ada (diff)
QCommonStyle: cache the xpm QPixmaps
The QPixmap(const char* const*) ctor featured prominently in the callgrind trace of tst_qmdi*, with 23% of total time spent there in tst_qmdiarea before the change. Cache the results in the QPixmapCache. That's probably a good idea for all standardPixmap()s, but none other feature prominently in any of the widgets/widgets auto-tests, so there's no immediate need to do something about it. After the change, less than 3.5% of the total time is spent on parsing XPMs. Change-Id: Idfb6ffe0d0f7a4a1f71a7c26fc9ab0f42bdbd7a8 Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'src/widgets/kernel/qopenglwidget.cpp')
0 files changed, 0 insertions, 0 deletions