Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.5.0, 5.6.1, 5.7.0 RC
-
None
Description
When running the code from http://paste.ubuntu.com/17179779/ in qmlscene the code that uses object.object.name instead of the name of the property directly is six times slower.
Feels like it should be as fast?
Inline code:
import QtQuick 2.4 Item { id: root width: 400 height: 400 property alias moo: item Item { id: item readonly property bool result: true Component.onCompleted: { var start, i; var iters = 1000000; start = new Date; i = iters; do { if (root.moo.result) { } } while (--i); console.log('root.moo.result', new Date - start, root.moo.result); start = new Date; i = iters; do { if (result) { } } while (--i); console.log('result', new Date - start, result); } } } qml: root.moo.result 318 true qml: result 55 true Why is the second iteration six times slower?