From d82e1d145da5850f20354f2e376b8c4803f1b379 Mon Sep 17 00:00:00 2001 From: Simon Hausmann Date: Sun, 9 Aug 2015 10:33:25 +0200 Subject: [PATCH] Reduce memory usage of dynamic properties The dynamic property variants are stored as QList, 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) --- src/corelib/kernel/qobject_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corelib/kernel/qobject_p.h b/src/corelib/kernel/qobject_p.h index bd5ee006bf1..b0690563d7b 100644 --- a/src/corelib/kernel/qobject_p.h +++ b/src/corelib/kernel/qobject_p.h @@ -110,7 +110,7 @@ public: QVector userData; #endif QList propertyNames; - QList propertyValues; + QVector propertyValues; QVector runningTimers; QList > eventFilters; QString objectName;