diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-02 15:14:45 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-03 08:52:11 +0200 |
commit | a0a037c4651902f43c686dd92b64c98800c0a3a7 (patch) | |
tree | 1d8a79cf0d5410997331a846148d3e9abb48ae03 /src/qml/compiler/qv4isel_moth.cpp | |
parent | b5198ce221c67c9772b3a205fd3823a9c516a9ec (diff) |
Use a QVector instead of a QList
This makes the code go quite a bit faster (saves ~7-8% of the
total amount of instructions executed when running crypto.js
Change-Id: I6b3bd08eca98b45593262e2fc6e0ce5056257e76
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/compiler/qv4isel_moth.cpp')
-rw-r--r-- | src/qml/compiler/qv4isel_moth.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/compiler/qv4isel_moth.cpp b/src/qml/compiler/qv4isel_moth.cpp index 4bea6322e6..7c999edb59 100644 --- a/src/qml/compiler/qv4isel_moth.cpp +++ b/src/qml/compiler/qv4isel_moth.cpp @@ -149,7 +149,7 @@ class QQmlJS::Moth::StackSlotAllocator QHash<V4IR::Temp, V4IR::LifeTimeInterval> _intervals; public: - StackSlotAllocator(const QList<V4IR::LifeTimeInterval> &ranges, int maxTempCount) + StackSlotAllocator(const QVector<V4IR::LifeTimeInterval> &ranges, int maxTempCount) : _activeSlots(maxTempCount) { _intervals.reserve(ranges.size()); |