Details
-
Bug
-
Resolution: Duplicate
-
P2: Important
-
None
-
5.12.4
-
None
Description
QML Caching
The QML runtime loads QML documents by parsing them and generating byte code. Most of the time, the document hasn't changed since the last time it was loaded. To speed up this loading process, the QML runtime maintains a cache file for each QML document. This cache file contains the compiled byte code and a binary representation of the QML document structure. In addition, when multiple applications use the same QML document, the memory needed for the code is shared between application processes. The cache files are loaded via the mmap() system call on POSIX-compliant operating systems or CreateFileMapping() on Windows, resulting in significant memory savings.
Each time you load a changed QML document, the cache is automatically re-created. Cache files are located in a sub-directory of QStandardPaths::CacheLocation with the name "qmlcache". The file extension is .qmlc for QML documents and .jsc for imported JavaScript modules.
Is there any way to modify the cache's location ?
Or is there any envs to do this ?
Thank you.
Attachments
Issue Links
- duplicates
-
QTBUG-58858 Configurable location for QML cache files
- Closed