Hey
I've had a bit of time to start digging in to it a bit more.
My slowdowns seems to come from here :
inline void registerImage(const keyType&key, const QImage&img) { mImageCache[key] = img; };
inline void registerPixmap(const keyType&key, const keyType&imagePath) { mPixmapCache[key] = QPixmap(imagePath); };
inline void registerPixmap(const keyType&key, const QPixmap&img) { mPixmapCache[key] = img; };
inline void registerIcon(const keyType&key, const keyType&imagePath) { mIconCache[key] = QIcon(imagePath); };
inline void registerIcon(const keyType&key, const QIcon&img) { mIconCache[key] = img; };
/*!
* Register input as all types of images & convert for each.
* @param key
* @param data
*/
inline void registerAll(const keyType&key, const keyType&data) {
registerImage(key, data);
registerPixmap(key, data);
registerIcon(key, data);
mRegisteredPaths[key] = data;
}
keyType = QString/char*/etc
the path I'm providing here is from QRC compiled svg icons.
I remember reading that qt was getting new SVG engine, and this is VERY slow now, my app startup went from instant to 20-30 seconds.
I'm still drilling down what is exactly causing it, but do we have any reports of svg/pixmap/qimage issues?
Appear to be this:
https://qt-project.atlassian.net/browse/QTBUG-139060
seems like 6.10.1 does not have any fix yet... :-(