Hi Tm.

> so, just to rephrase this with my own words:
> 
> * .qmlc and .jsc are not generated at compile-time and not shipped
> inside the qrc file, but are created at run-time
Yes
> 
> * instead they are created when running the application for the first time.
> 
Yes
> * it does not improve the instantiation times of the first execution, as
> the cache hasn't been warmed up, yet.
> 
Yes
> 
> which leads me to more questions:
> 
> * is there a way to configure the location where the cached files will
> be stored?
> 
My assumption is it is stored in QStandardPaths::CacheLocation, don’t know how 
to influence that yet.

> * is it possible to warm up the cache explicitly without instantiating
> the qml files completely? e.g. i'd like to create the cache for all qml
> files that will be instantiated during the lifetime of the program at
> startup time in order to hide latencies when they are actually loaded.
> 
No its not possible yet.  As I wrote "Ahead of time compilation of Qt Quick 
continues to be supported through the commercial Qt Quick Compiler.“
The main problem to solve is cross platform ahead of time compilation. If you 
are on the same kind of machine for building and running your application,you 
could write your own training code by instantiating your qml components one 
after another and collect the cache files for later use. But it is not 
supported yet afaik.


> thanks a lot,
> tim
> 
>> 
>> Regards,
>> Gunnar Roth
>> 
>> 
>>> Am 14.11.2016 um 15:42 schrieb Tim Blechmann <t...@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@qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

_______________________________________________
Interest mailing list
Interest@qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest

Reply via email to