diff options
author | Thomas Hartmann <[email protected]> | 2018-01-10 15:59:07 +0100 |
---|---|---|
committer | Thomas Hartmann <[email protected]> | 2018-01-12 07:03:29 +0000 |
commit | 4d6830546619d16275b01f1f049fdcb0b6489f7a (patch) | |
tree | feee3a660e22affd2ad4f6d5858478edecdac4df /src/qml/jsruntime/qv4jsonobject.cpp | |
parent | 6318a43ffc473ba101c955d96b39bc1b93ef7e61 (diff) |
Add setContextProperties()
Setting all properties in one batch avoids unnecessary
refreshing of expressions and is therefore a lot
faster if there are many expressions in the context.
In an example I created it takes 500ms to set 10 context properties
using setContextProperty() and it takes about 150ms to set the
context properties using setContextProperties.
Change-Id: Ic7cf03cda292b316198f37f963b61a2388a288c9
Reviewed-by: Thomas Hartmann <[email protected]>
Reviewed-by: Simon Hausmann <[email protected]>
Diffstat (limited to 'src/qml/jsruntime/qv4jsonobject.cpp')
0 files changed, 0 insertions, 0 deletions