Skip to content

utils: Don't load MIME database for text/plain icon

Kai Uwe Broulik requested to merge work/kbroulik/fastcall-texticon into master

While it technically breaks having a custom icon for text files, this saves loading the MIME database entirely when loading an empty document when we assume text/plain in KTextEditor.


With frameworks/ktexteditor!788 (merged) I no longer get a QMimeDatabase created at all on opening kwrite with no document.

Saves a noticeable amount of startup time

Image is 1 second. Top is new, Bottom is current git master.

Screenshot_20250217_220919

Edited by Kai Uwe Broulik

Merge request reports

Loading