diff options
author | Holger Hans Peter Freyther <holger@moiji-mobile.com> | 2014-06-15 08:12:17 +0200 |
---|---|---|
committer | Holger Freyther <holger+qt@freyther.de> | 2014-07-20 09:51:50 +0200 |
commit | a62955472b2acd644db46ea194d4fb0bc119150f (patch) | |
tree | 7f3d45a32b9e515666c42882d389cf526a2422ca /src/qml/qml/qqmlfileselector.cpp | |
parent | 8ea3b20b141a93da5ca6e2ef4e623249ab46d91b (diff) |
v4: Delay creating the ScopedValue/ScopedProperty in objectLiteral
Creating a ScopedValue/ScopedProperty is not free. It will use the
ExecutionEngine directly to reserve memory from the JS Stack. In
tests/manual/v4/v8-bench.js and bench-allocate-nonretained.js a lot
of objects are created and the arrayValueCount and the
arrayGetterSetterCount are 0. We can delay the creation for a small
gain.
When generating the code we already know the various sizes and
could already call specialized versions of the creation code. The
gain is not so clear though.
Change-Id: Ic99b241f5506457e57611ad4eba143c56be1f657
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlfileselector.cpp')
0 files changed, 0 insertions, 0 deletions