qt5base-lts/qmake/library
Anton Kudryavtsev 69ab280315 qmake: optimize container usage in the json handling.
Iterate only once over QJsonObject, create key list by
existing loop instead of create by QJsonObject::keys(),
which contains internal loop.
In common case if loop's statement is lightweight,
then effect of optimization is significant, and vice versa.
Also make addJsonArray() and addJsonObject() functions
more homogeneous.

Use reserve to optimize memory allocation.

Change-Id: Id122cd1becfd34bb06640876b1c79e1d396d2a6b
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
2016-02-04 15:11:05 +00:00
..
ioutils.cpp Updated license headers 2016-01-21 18:55:18 +00:00
ioutils.h Updated license headers 2016-01-21 18:55:18 +00:00
proitems.cpp qmake: eradicate Q_FOREACH loops [already const] 2016-01-28 20:25:21 +00:00
proitems.h Updated license headers 2016-01-21 18:55:18 +00:00
qmake_global.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakebuiltins.cpp qmake: optimize container usage in the json handling. 2016-02-04 15:11:05 +00:00
qmakeevaluator_p.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakeevaluator.cpp qmake: use reserve to optimize memory allocation. 2016-02-01 20:57:59 +00:00
qmakeevaluator.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakeglobals.cpp qmake: eradicate Q_FOREACH loops [already const] 2016-01-28 20:25:21 +00:00
qmakeglobals.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakeparser.cpp qmake: eradicate Q_FOREACH loops [needing qAsConst()] 2016-01-28 20:25:18 +00:00
qmakeparser.h Updated license headers 2016-01-21 18:55:18 +00:00
qmakevfs.cpp Updated license headers 2016-01-21 18:55:18 +00:00
qmakevfs.h Updated license headers 2016-01-21 18:55:18 +00:00