diff options
author | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-08-09 10:33:25 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2015-08-10 03:41:28 +0000 |
commit | d82e1d145da5850f20354f2e376b8c4803f1b379 (patch) | |
tree | f9921d067df805a6613f3df6e5f55d436afb67cb /src | |
parent | 83cfec7aacc4c15fb18680165ca60a6754681af1 (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) <ogoffart@woboq.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qobject_p.h | 2 |
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; #endif QList<QByteArray> propertyNames; - QList<QVariant> propertyValues; + QVector<QVariant> propertyValues; QVector<int> runningTimers; QList<QPointer<QObject> > eventFilters; QString objectName; |