[Qt-qml] QML file size and performance
Alan Alpert
alan.alpert at nokia.com
Tue Nov 16 08:48:43 CET 2010
On Tue, 16 Nov 2010 17:28:19 ext kalyan reddy wrote:
> I am guessing Yes. There should be reduction in amount of data to be read
> and evaluated(Which needs to be done at somepoint). This is worth
> checking, unless it's being handled already.
>
> br,
> kalyan
>
> On Tue, Nov 16, 2010 at 2:22 AM,
> <jerome.pasion at nokia.com<mailto:jerome.pasion at nokia.com>> wrote: Hello,
>
> A question I received was about QML file sizes and performance on mobile
> devices. Would there be huge performance benefits by stripping the
> comments or white space from QML files? (Other than the obvious file size
> reduction.)
>
> Cheers,
> Jerome P.
>
I'm guessing no to huge benefits though. You may save on startup time but I
doubt that reading the files in is a large cost. The files are reprocessed into
a binary in-memory representation at startup, so by runtime there should be no
performance difference (i.e. we've effectively already discarded comments and
whitespace). This may not be true for the javascript files though, since I
javascriptcore may like large JS files to be shrunk and we'd just be passing
those in to JSC.
--
Alan Alpert
Software Engineer
Nokia, Qt Development Frameworks
--
Alan Alpert
Software Engineer
Nokia, Qt Development Frameworks
More information about the Qt-qml
mailing list