diff options
author | Ulf Hermann <[email protected]> | 2023-07-06 11:21:28 +0200 |
---|---|---|
committer | Ulf Hermann <[email protected]> | 2023-07-06 21:29:44 +0200 |
commit | 4f9cae381f56f9c0efe4f6b7646c2e7853613801 (patch) | |
tree | d7409286690b85964576a2b390f67235eea02a5f /src/qml/jsruntime/qv4sequenceobject.cpp | |
parent | ca27c051ab52b764df8c8aab9c33211cbf94eba1 (diff) |
QQmlType: Re-organize QQmlTypePrivate to reduce memory usage
The iid is only used for interfaces, and re-ordering the members saves
some padding. Also, avoid extra indirection where possible. QUrl is only
one pointer to begin with, just like QMetaSequence. We can store them
directly in the union. Finally, rename the extraData members so that we
can easily recognize them.
Change-Id: Ia9c524ea65f8137b264a7dfd9459369c90ce1670
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4sequenceobject.cpp')
-rw-r--r-- | src/qml/jsruntime/qv4sequenceobject.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4sequenceobject.cpp b/src/qml/jsruntime/qv4sequenceobject.cpp index dc894fb670..13388108c4 100644 --- a/src/qml/jsruntime/qv4sequenceobject.cpp +++ b/src/qml/jsruntime/qv4sequenceobject.cpp @@ -694,7 +694,7 @@ QVariant SequencePrototype::toVariant(const QV4::Value &array, QMetaType typeHin const QQmlType type = QQmlMetaType::qmlListType(typeHint); if (type.isSequentialContainer()) { const QQmlTypePrivate *priv = type.priv(); - const QMetaSequence *meta = priv->extraData.ld; + const QMetaSequence *meta = &priv->extraData.sequentialContainerTypeData; const QMetaType containerMetaType(priv->listId); QVariant result(containerMetaType); qint64 length = a->getLength(); |