diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-31 13:22:07 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-31 20:16:11 +0100 |
commit | 02a8fc62491fbdee1913c2c20c939308e05f8d6f (patch) | |
tree | 5aa9117fd27491f74574fd2c0e21ab7da73fb236 /src/qml/jsruntime/qv4runtime_p.h | |
parent | a02863c6cea9cd9dac5cff5c92f64c05de513675 (diff) |
Optimize string additions
QV4::String can now either hold a pointer to a QStringData,
or a pair of pointers to a left and right string. This
reduces the overhead of an addition to allocating a new
GC'ed object.
To avoid huge chains of linked strings, we use a depth counter,
and flatten the string once the depth reaches 16.
Change-Id: If7192b8a9f67f0e36a9a8ea34a156c5222f127f4
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/jsruntime/qv4runtime_p.h')
-rw-r--r-- | src/qml/jsruntime/qv4runtime_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/qml/jsruntime/qv4runtime_p.h b/src/qml/jsruntime/qv4runtime_p.h index 7315258b5e..0a5e18568a 100644 --- a/src/qml/jsruntime/qv4runtime_p.h +++ b/src/qml/jsruntime/qv4runtime_p.h @@ -148,7 +148,6 @@ QV4::ReturnedValue __qmljs_init_closure(QV4::ExecutionContext *ctx, int function // strings Q_QML_EXPORT double __qmljs_string_to_number(const QString &s); Returned<String> *__qmljs_string_from_number(QV4::ExecutionContext *ctx, double number); -Returned<String> *__qmljs_string_concat(QV4::ExecutionContext *ctx, QV4::String *first, QV4::String *second); // objects Q_QML_EXPORT ReturnedValue __qmljs_object_default_value(QV4::Object *object, int typeHint); |