QV4: Lower time spent in indirections and allocations.
authorRobin Burchell <robin.burchell@viroteck.net>
Sun, 21 Dec 2014 19:15:09 +0000 (20:15 +0100)
committerRobin Burchell <robin.burchell@viroteck.net>
Wed, 7 Jan 2015 20:35:58 +0000 (21:35 +0100)
commitc3b6a6413636a17a74e777e65d271954392867ca
tree0304461c99673c86f301b95fd1e46996fa31ef5e
parentba690fb73864915b4a35bbec5b7dc134ff1dafd0
QV4: Lower time spent in indirections and allocations.

Change data type for defsUntyped from QList -> QVector & reserve space when
creating the list. Drops ~250ms off a pretty morbid QML testcase, most, but not
all of which was spent in allocations.

Change-Id: I2ed8c62e7d41ab353a0194da268a2b430f079474
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
src/qml/compiler/qv4ssa.cpp