[Interest] [5.8] how to use qml caching?

Gunnar Roth gunnar.roth at gmx.de
Mon Nov 14 22:21:21 CET 2016



Hi Tim.
from  https://wiki.qt.io/New_Features_in_Qt_5.8i:

	• Implemented caching of code and data structures generated from .qml/.js files to disk to reduce start-up time and memory consumption. The resulting .qmlc and .jsc cache files are memory mapped.

This all happens automatically on the first run.

See also  https://blog.qt.io/blog/2016/09/05/qt-5-8-alpha-released/
QML caching

The QML engine has also seen some major improvements with a new caching infrastructure, that can cache the QML files in a precompiled binary form. This infrastructure does help to significantly speed up loading of QML applications once the binary cache has been created. It also helps reduce memory consumption. Ahead of time compilation of Qt Quick continues to be supported through the commercial Qt Quick Compiler.

Regards,
Gunnar Roth


> Am 14.11.2016 um 15:42 schrieb Tim Blechmann <tim at klingt.org>:
> 
> hi all,
> 
> i've read a lot about qml caching in qt-5.8. however i didn't find any
> documentation on how to use it.
> 
> is there any documentation on how we can use it from a cmake
> buildsystem? i suppose somehow the qrc files need to be pre-processed to
> generate the qmlc/jsc files?
> 
> thanks a lot!
> 
> tim
> 
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest




More information about the Interest mailing list