首页 > 其他 > 详细

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

时间:2017-02-04 10:49:32      阅读:474      评论:0      收藏:0      [点我收藏+]

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被系统缓存的原理是比较时间戳

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!