summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-02-01 10:42:04 +0300
committerAnton Kudryavtsev <a.kudryavtsev@netris.ru>2016-02-04 15:11:05 +0000
commit69ab28031549ff1c9ceecdcb29197900e9bc4328 (patch)
tree3688023c40d8b158d73ae87a8a4b1e3a3edcc962 /src
parent20a2ba6d74acf0e27ebdd4288857c7d56229bbc8 (diff)
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>
Diffstat (limited to 'src')
0 files changed, 0 insertions, 0 deletions