diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-05 06:23:41 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-08-05 06:23:41 (GMT) |
commit | 6e682a64153f0b3f96a412a72dab0158e3f8e365 (patch) | |
tree | 52ff7c6b6cf4485935029d6de0b9ef1601e12a2a /src/declarative/qml/qmlexpression_p.h | |
parent | 3c85728f2cb69817d4b72d3aab16b7a7fe6bdbf0 (diff) | |
download | Qt-6e682a64153f0b3f96a412a72dab0158e3f8e365.zip Qt-6e682a64153f0b3f96a412a72dab0158e3f8e365.tar.gz Qt-6e682a64153f0b3f96a412a72dab0158e3f8e365.tar.bz2 |
Use a linked list instead of a QSet<> to track expressions
While the QSet<> wasn't that expensive, the QmlContext only tracks the
expressions to stop programmers doing something "stupid" so any overhead is
unacceptable. This does give a measurable improvement.
Diffstat (limited to 'src/declarative/qml/qmlexpression_p.h')
-rw-r--r-- | src/declarative/qml/qmlexpression_p.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/declarative/qml/qmlexpression_p.h b/src/declarative/qml/qmlexpression_p.h index 5ecc24d..f607898 100644 --- a/src/declarative/qml/qmlexpression_p.h +++ b/src/declarative/qml/qmlexpression_p.h @@ -70,6 +70,10 @@ public: QmlExpressionPrivate(); ~QmlExpressionPrivate(); + // Forms the QmlContext "expressions" linked list + QmlExpressionPrivate *nextExpression; + QmlExpressionPrivate **prevExpression; + enum CompiledDataType { BasicScriptEngineData = 1, PreTransformedQtScriptData = 2 |