Skip to content

Commit

Permalink
Merge pull request qmlbook#76 from qmlbook/ch04-advanced
Browse files Browse the repository at this point in the history
advanced.md: fix language issues
  • Loading branch information
e8johan authored Sep 16, 2021
2 parents 48e75ab + 2f89274 commit c019f16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/ch04-qmlstart/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

## Performance of QML

QML and Javascript are interpreted languages. This means that they do not have to be processed by a compiler before being executed. Instead, they are being run inside an execution engine. However, as interpretation is a costly operation various techniques are used to improve performance.
QML and Javascript are interpreted languages. This means that they do not have to be processed by a compiler before being executed. Instead, they are being run inside an execution engine. However, as interpretation is a costly operation, various techniques are used to improve performance.

The QML engine uses just-in-time (JIT) compilation to improve performance. It also caches the intermediate output to avoid having to recompile. This works seamlessly for you as a developer. The only trace of this is that files ending with `qmlc` and `jsc` can be found next to the source files.

If you want to avoid the initial start-up penalty induced by the initial parsing you can also pre-compile your QML and Javascript. This requires you to put your code into a Qt resource file and is described in detail in the [Compiling QML Ahead of Time](http://doc.qt.io/qt-6/qtquick-deployment.html#compiling-qml-ahead-of-time) chapter in the Qt documentation.
If you want to avoid the initial start-up penalty induced by the initial parsing you can also pre-compile your QML and Javascript. This requires you to put your code into a Qt resource file, and is described in detail in the [Compiling QML Ahead of Time](http://doc.qt.io/qt-6/qtquick-deployment.html#compiling-qml-ahead-of-time) chapter in the Qt documentation.

0 comments on commit c019f16

Please sign in to comment.