Use static-less QMetaType API in QVariant.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Mon, 9 Jan 2012 10:36:03 +0000 (11:36 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 16 Feb 2012 01:00:30 +0000 (02:00 +0100)
commit1b23336a297681dc12700880540a5a8d31f146fe
treea9b3b0ed63d3d14b1741644a38cd87c0510a89cf
parent214e031d56714ba69ef929f1e763e243b393e460
Use static-less QMetaType API in QVariant.

This patch improves performance when constructing a custom type in
a QVariant by ~ 7-20% (instructions count) depending on the type size
and metatype attributes.

Change-Id: Ic2707ff5abd689b66e23c1794f111504bf9b3b01
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/kernel/qvariant.cpp
tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp