Commit 00f15195 authored by Simon Hausmann's avatar Simon Hausmann
Browse files

Clarify QML cache docs after changes in qtdeclarative


The cache files are architecture independent and do not contain native
code anymore. That also lifts some limitations. The remaining limitation
of not supporting resources but only modules is something that will be
removed soon but come via a separate change for the docs.

Change-Id: I390ffbb1e3c5837ee120ee303964b16eb66d4903
Reviewed-by: default avatarLars Knoll <lars.knoll@qt.io>
parent 9e819c2f
No related merge requests found
Showing with 4 additions and 13 deletions
...@@ -63,10 +63,10 @@ The \l{Downloads}{Qt Installers} install the QML libraries in ...@@ -63,10 +63,10 @@ The \l{Downloads}{Qt Installers} install the QML libraries in
\section1 QML Caching \section1 QML Caching
The QML runtime loads QML documents by parsing them and generating native code. 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. Most of the time the document hasn't changed since the last time it was loaded.
In order to speed up this loading process, the QML runtime maintains a cache In order to speed up this loading process, the QML runtime maintains a cache
file for each qml document. This cache file contains the native code and a file for each qml document. This cache file contains the byte code and a
binary representation of the QML document structure. In addition, when multiple binary representation of the QML document structure. In addition, when multiple
applications use the same QML document, the memory needed for the code is applications use the same QML document, the memory needed for the code is
shared between application processes. The cache files are loaded via the \c shared between application processes. The cache files are loaded via the \c
...@@ -130,17 +130,8 @@ and also installed into the same directory for deployment. ...@@ -130,17 +130,8 @@ and also installed into the same directory for deployment.
\section2 Limitations \section2 Limitations
Currently this feature has some limitations: Currently this feature has the limitation that only QML and JavaScript
documents that are part of a QML module can be compiled ahead of time.
\list
\li Only QML and JavaScript documents that are part of a QML module can be
compiled ahead of time.
\li For cross-compilation, only the ARMv7 and ARMv8 target architectures are
supported.
\li For native compilation, Ahead-of-Time caching is limited to architectures
where the QML runtime supports Just-in-Time compilation. This includes x86, x86-64,
ARMv7, ARMv8 and MIPS32.
\endlist
\section1 Prototyping with QML Scene \section1 Prototyping with QML Scene
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment