Create them only on-demand (e.g. when the menu opens or the DecorationRole is queried)
and also use KConfig::SimpleConfig as we're passing in an absolute file path anyway.
Details
Details
- Reviewers
ngraham - Group Reviewers
Frameworks - Commits
- R265:31b32aac5dd0: [KColorSchemeManager] Optimize preview generation
On Kate startup KColorSchemeManager went from 12% cost to 2.6% and saves around 40ms Kate startup time for me.
Previews are still generated properly when I enter the menu. A QComboBox using the model still gets its
previews generated when it reads the DecorationRole
Diff Detail
Diff Detail
- Repository
- R265 KConfigWidgets
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.