码迷,mamicode.com
首页 > 其他好文 > 详细

QML被系统缓存的原理是比较时间戳

时间:2017-02-04 10:51:44      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:sed   blog   toc   head   compiler   lease   card   bsp   lin   

Gunnar Roth

January 25, 2017 at 17:07

Afaik the cached qml file contains a checksum of the original qml and the qml dll. if any of this changes it will be discarded.

Simon

Basically Gunnar is correct. We look at the time stamp of the source file and compare it with the time stamp we had when the cache file was created (so the cache file data structure contains the time stamp of the original file). If there’s a difference, we’ll re-create the cache file. In addition there are various other checks that result in the cache file being re-created if the architecture differs, the Qt version changes or an internal version field is bumped for example. So no manual intervention should be needed.

 

What I also want to know regarding QML file caching: Is there a still performance boost if I already use Qt Quick Compiler?

第二次运行才能利用缓存信息:

The Qt Quick Compiler (commercial only in Qt 5.8) is for ahead of time compilation. It will make already the first run fast, with caching the benefits are from second run onwards.

 

http://blog.qt.io/blog/2017/01/23/qt-5-8-released/

QML被系统缓存的原理是比较时间戳

标签:sed   blog   toc   head   compiler   lease   card   bsp   lin   

原文地址:http://www.cnblogs.com/findumars/p/6363933.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!