From 69a17a912a41458a2b4a20bdbda1717920275250 Mon Sep 17 00:00:00 2001 From: Aaron Kennedy Date: Fri, 17 Jun 2011 11:37:17 +1000 Subject: Evaluate all shared bindings together using a shared context The vast majority of bindings are capable of being shared (that is, don't introduce closures themselves) and consequently this improves the performance of almost every app. --- src/declarative/qml/qdeclarativecontext_p.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/declarative/qml/qdeclarativecontext_p.h') diff --git a/src/declarative/qml/qdeclarativecontext_p.h b/src/declarative/qml/qdeclarativecontext_p.h index ac933a3ae3..59d886c366 100644 --- a/src/declarative/qml/qdeclarativecontext_p.h +++ b/src/declarative/qml/qdeclarativecontext_p.h @@ -73,6 +73,7 @@ QT_BEGIN_NAMESPACE +class QV8Bindings; class QDeclarativeContext; class QDeclarativeExpression; class QDeclarativeEngine; @@ -192,9 +193,6 @@ public: void setIdProperty(int, QObject *); void setIdPropertyData(QDeclarativeIntegerCache *); - // Optimized binding pointer - QDeclarativeV4Bindings *optimizedBindings; - // Linked contexts. this owns linkedContext. QDeclarativeContextData *linkedContext; @@ -202,6 +200,10 @@ public: // context QDeclarativeComponentAttached *componentAttached; + // Optimized binding objects. Needed for deferred properties. + QDeclarativeV4Bindings *v4bindings; + QV8Bindings *v8bindings; + // Return the outermost id for obj, if any. QString findObjectId(const QObject *obj) const; -- cgit v1.2.3