V4: lower memory allocator pressure.
authorErik Verbruggen <erik.verbruggen@digia.com>
Thu, 16 Jan 2014 13:55:41 +0000 (14:55 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 16 Jan 2014 18:19:31 +0000 (19:19 +0100)
commita03a6499ab64da2003d2d8a4691ea89606af1f8b
tree2d76bfcbae9e7c02947e45681d25b5589c1b4caa
parent6f0f73e63182afc92cb1b8255b114fb8f8232f22
V4: lower memory allocator pressure.

Changes to datastructures and more re-using of locally used temporary
vectors. For the test regress-74474-002.js this lowers the total
allocated memory from 1.98GB to 158MB. Thse peak memory usage stays at
75MB. There is no functional change.

This should give a modest performance improvement which mainly depends
on the speed of malloc()/free().

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