Important: Please read the Qt Code of Conduct -

Parsing of QML: Question on performance

  • Hi all,

    I have a question regarding QtQuick and the parsing of QML files: The parsing seems to me as a rather expensive operation. How does QtQuick handle this and still run smooth on realtime applications?

    Best Regards,

  • Please define "realtime": a bit more.

    Are you talking about guaranteed fast response times, as needed in industry for several machines?

  • Hi,

    Sorry for my vauge qestion, what I mean by realtime is an application where the user gets imediate response and where the applicatuion is feed and displayes data continously.

    I'm curious since I've seen quite advanced QtQuick applications running on phones and other embedded systems and still manage to run smooth. Parsing QML files continously seems like something quite cumbersome to do "on the fly".

    Best Regards,

  • It is not continually parsed, AFAIK. A file is parsed as it is loaded, and corresponding objects are created, set up and interconnected with signals and slots based on the definitions in the file. The javascript stuff is loaded into the javascript engine. How this works exactly, I don't know, but there is no continuous parsing going on AFAIK. If you really want to know how it works under the hood: the sources are all there ;)

    As you tell yourself: Quick is per formant enough for real, quite complex applications. I am not saying that it is without problems, but it is not doing badly either.

Log in to reply