zoukankan      html  css  js  c++  java
  • QML被系统缓存的原理是比较时间戳

    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/

  • 相关阅读:
    SCOI2012 奇怪的游戏
    AHOI2013 差异
    HAOI2018 染色
    HNOI2015 开店
    PKUWC2018 随机游走
    HAOI2015 按位或
    Luogu4859 二项式反演
    CTSC2018 混合果汁
    yii2.0邮件发送问题解决
    yii2.0 elasticsearch模糊查询
  • 原文地址:https://www.cnblogs.com/findumars/p/6363933.html
Copyright © 2011-2022 走看看