Revision 903747
Go back to digest for 4th January 2009Optimization in KDE Base
Christoph Feck committed changes in /trunk/KDE/kdebase/workspace/kcontrol/colors:
Performance: Do not create full QPalette for scheme previews
Passing a QPalette to createSchemePreviewIcon() requires loading colors from all color groups, and applying effects to them.
We do only need a few colors in the preview, and loading them individually is faster.
On my system, populateSchemeList() went from ~750 ms down to ~380 ms (with 35 installed schemes).
File Changes
Modified 2 files
- /trunk/KDE/kdebase/workspace/kcontrol/colors
- /colorscm.cpp
- /colorscm.h
2 files changed in total