summaryrefslogtreecommitdiffstats
path: root/src/script/bridge
diff options
context:
space:
mode:
authorKent Hansen <kent.hansen@nokia.com>2010-03-10 11:08:34 (GMT)
committerKent Hansen <kent.hansen@nokia.com>2010-03-10 16:22:16 (GMT)
commita0164cbfcf2730e99030a2d4e03269acc228d2d4 (patch)
tree00ac547e24db9c25571fe54bfec35b5f4b643f71 /src/script/bridge
parent480ddc554870f261578982bd6bf7070a7477b862 (diff)
downloadQt-a0164cbfcf2730e99030a2d4e03269acc228d2d4.zip
Qt-a0164cbfcf2730e99030a2d4e03269acc228d2d4.tar.gz
Qt-a0164cbfcf2730e99030a2d4e03269acc228d2d4.tar.bz2
Improve performance of QScriptValueIterator
The implementation was getting all the property names (identifiers) and storing their string representation. In e.g. value() and setValue(), the string representation then had to be converted back to an identifier. This was unnecessary work. Instead, store the identifiers directly, and use them via the QScriptValue private API whenever we can. This greatly improves the performance of scriptName(), value(), setValue(), flags() and remove(). (tests/benchmarks/script/qscriptvalueiterator is 4-5 times faster.) Reviewed-by: Jedrzej Nowacki
Diffstat (limited to 'src/script/bridge')
0 files changed, 0 insertions, 0 deletions