path: root/src
diff options
authorSimon Hausmann <>2015-08-09 10:33:25 +0200
committerThiago Macieira <>2015-08-10 03:41:28 +0000
commitd82e1d145da5850f20354f2e376b8c4803f1b379 (patch)
treef9921d067df805a6613f3df6e5f55d436afb67cb /src
parent83cfec7aacc4c15fb18680165ca60a6754681af1 (diff)
Reduce memory usage of dynamic properties
The dynamic property variants are stored as QList<QVariant>, which unfortunately results in QList to behave as array-list because of the size of QVariant. By storing the variants in a vector directly we can eliminate the array-list element pointers. Change-Id: I8736e1cf48b9fc97df3007df4a439b793933f346 Reviewed-by: Olivier Goffart (Woboq GmbH) <>
Diffstat (limited to 'src')
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h
index bd5ee006bf..b0690563d7 100644
--- a/src/corelib/kernel/qobject_p.h
+++ b/src/corelib/kernel/qobject_p.h
@@ -110,7 +110,7 @@ public:
QVector<QObjectUserData *> userData;
QList<QByteArray> propertyNames;
- QList<QVariant> propertyValues;
+ QVector<QVariant> propertyValues;
QVector<int> runningTimers;
QList<QPointer<QObject> > eventFilters;
QString objectName;