diff options
author | Simon Hausmann <simon.hausmann@qt.io> | 2018-01-16 13:47:51 +0100 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@qt.io> | 2018-01-17 13:14:09 +0000 |
commit | 15a81d9689cad5c957aed09161fdab253b27c130 (patch) | |
tree | 1da3bc2eff92d4a430b9e5f0dc3ab58e4adb97f9 /src/qml/qml/qqmlobjectcreator_p.h | |
parent | e4ffad84fecebb3c1fc554b3252fd5d059c0ff38 (diff) |
Optimize QQmlProperty constructor for the common property case
The common case is that QQmlProperty is constructed on the property of
an object, not a group property. Therefore we should do the
QVector<QStringRef> split on the property name by '.' only if a dot
exists, and can avoid the allocation and deallocation of the vector.
Shaves off ~1.2% off delegates_item_states.qml.
Task-number: QTBUG-65708
Change-Id: Iffbde176e616beec0ae0a47216360558adc793ee
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'src/qml/qml/qqmlobjectcreator_p.h')
0 files changed, 0 insertions, 0 deletions