From 551efd91990e07902e5324f720cf5585865c323d Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Fri, 24 Mar 2017 10:50:51 +0100 Subject: [PATCH] QmlProfiler: Use QList for QmlRange container when loading .qtd As we are using this as a queue, with many calls to takeFirst(), a QVector is prohibitively expensive here. Change-Id: I151452ae1299ab520a3aceae7ff3da0e29fe9bf9 Reviewed-by: hjk --- src/plugins/qmlprofiler/qmlprofilertracefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp index a821b43eb0b..b84de415ae7 100644 --- a/src/plugins/qmlprofiler/qmlprofilertracefile.cpp +++ b/src/plugins/qmlprofiler/qmlprofilertracefile.cpp @@ -430,7 +430,7 @@ private: QmlEvent end; }; - QVector ranges; + QList ranges; // We are going to do a lot of takeFirst() on this. }; void EventList::addEvent(const QmlEvent &event)