← Back to team overview

ubuntu-phone team mailing list archive

Re: Improve apps startup time by using Qt Quick Compiler

 

Hi,

Qt's postponed opensourcing Qt Quick Compiler but prepared a caching system
instead (should be similar to what Pat's described).
You can read more here:
http://blog.qt.io/blog/2016/09/05/qt-5-8-alpha-released/

Regards,
Andrew

On Tue, 22 Nov 2016 at 17:05 Pat McGowan <pat.mcgowan@xxxxxxxxxxxxx> wrote:

> Some time ago we did an benchmark of compiled apps vs the QML caching we
> currently use and found little difference in startup performance. Qt is
> working on an improved version 2 of the compiler but as far as I know it is
> scheduled for release with 5.8 or 5.9.
>
> To be clear the first time an app is run we create a cache for the QML and
> javascript elements so they are not interpreted on subsequent runs. This
> saves at least 50% on most apps. We have also been tuning the code for our
> own apps to improve startup times as poor design is generally the biggest
> contributor to slowness.
>
> We also looked into using an app launching daemon type of approach to
> preload some of the runtime, but this is quite difficult given our strict
> app confinement model and requires changes to apparmor. We also found it
> did not result in significant savings.
>
> As for QtQuick controls 2, the sdk team is migrating our toolkit toward a
> common set of components and working with upstream on this.
>
> Pat
>
> On Tue, Nov 22, 2016 at 6:15 AM, Roman Shchekin <mrqtros@xxxxxxxxx> wrote:
>
> Hello
>
> I proposed this some time ago and was told that some work already in
> progress. I hope it is true.
> BTW, what about QtQuick controls 2.0?
>
> Daniele Laudani <laudanidaniele@xxxxxxxxx> | От: 21 нояб. 2016 г. 22:35 |
> Сообщение:
>
> Hello,
>
> I was wondering if there were already some plans on using Qt Quick
> Compiler to pre compile qml files and improve app performance (
> https://doc.qt.io/QtQuickCompiler/).
> I see that, for now, it is closed source and only available for commercial
> licenses of Qt, however it looks like they are planning to open source it
> in the next release 5.8 (
> https://blog.qt.io/blog/2016/01/13/new-agreement-with-the-kde-free-qt-foundation/
> ).
> What are your thoughts about this?
>
> Cheers
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>
>
> --
> Mailing list: https://launchpad.net/~ubuntu-phone
> Post to     : ubuntu-phone@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~ubuntu-phone
> More help   : https://help.launchpad.net/ListHelp
>

References