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/

  • 相关阅读:
    第四次课堂作业
    12周课后作业
    12周上机(5.21)
    11周周五课后作业
    11周上机作业(5.14)
    第十周(5.7)上机
    第九周4.30上机作业
    第八周周五课后作业
    4.23 第八周上机作业
    4.17课后作业
  • 原文地址:https://www.cnblogs.com/findumars/p/6363933.html
Copyright © 2011-2022 走看看