diff options
author | Lars Knoll <lars.knoll@qt.io> | 2020-07-08 13:27:05 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2020-07-10 15:07:22 +0200 |
commit | 9f33ad904aa0f43c9599e61afaf8984b3f8a3b1c (patch) | |
tree | b4935914521745c9c0660c454603a88baea51f31 /src/corelib/kernel/qpropertyprivate.h | |
parent | e5a38facf6d69eee2a17853f9700ed79fa17430d (diff) |
Move all the QProperty related code into one compilation unit
And mark some methods as inline.
Performance is critical for our new property system. Compiling
it in one unit makes it possible for the compiler to do a much
better job at inlining and generating optimized code.
Improves performance of binding evaluations by another 20%.
Change-Id: I5a2aa93c74d2b68418b0a9d2e34d8199bb71e3ad
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'src/corelib/kernel/qpropertyprivate.h')
-rw-r--r-- | src/corelib/kernel/qpropertyprivate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/kernel/qpropertyprivate.h b/src/corelib/kernel/qpropertyprivate.h index 91d9204996..ad5ed59e88 100644 --- a/src/corelib/kernel/qpropertyprivate.h +++ b/src/corelib/kernel/qpropertyprivate.h @@ -55,6 +55,8 @@ #include <QtCore/QExplicitlySharedDataPointer> #include <QtCore/qtaggedpointer.h> +#include <functional> + QT_BEGIN_NAMESPACE class QUntypedPropertyBinding; |