Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2
-
ad6dafee9be288bcef6b2c4b318b234d2995abff
Description
QPixmapIconEngine::pixmap() uses the following code to generate a key for the pixmap cache:
QString key = QLatin1String("$qt_icon_") + QString::number(pm.cacheKey()) + QString::number(pe->mode) + QString::number(QApplication::palette().cacheKey()) + QLatin1Char('_') + QString::number(actualSize.width()) + QLatin1Char('_') + QString::number(actualSize.height()) + QLatin1Char('_');
This block of code costs around 50% of the time of the total function. It should be investigated if this can be done more effeciently perhaps using QPixmapCache::Key, or at least optimizing the usage of the string operations.