Assets: Does it need to be transparent?

Chris Browet cbro at semperpax.com
Fri Feb 17 19:25:46 UTC 2012


Hi,

The way the Assets are implemented, every single file access made in Qt
will try to go the assets first.
When trying to find out why my QML app was so slow to start, I noticed that
not using the assets as they are now gained me up to 20% in startup time.

My question is thus: Is there another reason for transparency than maximal
compatibility?

If not, IMHO, it would be better to gain some speed rather that keep max
compatibility. When switching platforms, the file locations are what is the
least compatible, and is expected to be adjusted...

I'd suggest to only try the assets if the path starts with "/assets" or
"file:///assets"

What do you think?

- Chris -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/necessitas-devel/attachments/20120217/f7163ec3/attachment.html>


More information about the Necessitas-devel mailing list