Skip to content

core: load configs from the vfs mirror to enable the qml disk cache - #1049

Open
bbedward wants to merge 2 commits into
quickshell-mirror:masterfrom
bbedward:fix-qs-cache
Open

core: load configs from the vfs mirror to enable the qml disk cache#1049
bbedward wants to merge 2 commits into
quickshell-mirror:masterfrom
bbedward:fix-qs-cache

Conversation

@bbedward

@bbedward bbedward commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

As noted in the codebase and #735, the QML disk cache doesnt work with qs: URLs.

This makes vfs/<id>/qs the import root and mirrors the full config there. Normal dirs are symlinked directly; dirs with generated files like qmldir, //@ if, or qml.json are mirrored with symlinks plus the generated files. Generated files are only rewritten when their contents change so cache mtimes stay valid.

The URL interceptor also canonicalizes config QML/JS/qmldir paths into the mirror so the same document cant be loaded under both qs: and file: URLs.

If the VFS cant be created it falls back to qs: like before.

On DMS this drops warm launch to "Configuration Loaded" from 1.28s to 0.77s and RSS by ~40MB.

Verify with QT_LOGGING_RULES=qt.qml.diskcache=true; the second run should be silent.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant