diff options
author | Jędrzej Nowacki <jedrzej.nowacki@nokia.com> | 2011-12-20 17:11:46 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-16 02:00:15 +0100 |
commit | 214e031d56714ba69ef929f1e763e243b393e460 (patch) | |
tree | 4732bd79e015eecb85e66ba3a3facc58d5fba9ae /tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp | |
parent | b9eb3715f55378802a1a0ae2f61d799ab84ee49a (diff) |
Implement new static less API for QMetaType.
Currently QMetaType API contains almost only static methods. This works
nice until someone needs more information or needs to do more operations
on a type. In this case every function call has to do type dispatch.
This API allows to avoid redundant type dispatching, by caching a
type information in a QMetaType instance. It gives significant
performance boost especially for custom types (up to 9x).
Change-Id: I223d066268402e072e41ca1d0a3e7bc160655d7f
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
Diffstat (limited to 'tests/benchmarks/corelib/kernel/qvariant/tst_qvariant.cpp')
0 files changed, 0 insertions, 0 deletions