Using a QVector with a Q_MOVABLE_TYPE with QVector should speed up
appending stuff by a magnitude.
Change-Id: Icf5cee87a0f35d81bf85f833f5656a9b296c80fd
Reviewed-by: Christiaan Janssen <christiaan.janssen@nokia.com>
#include <private/qdeclarativedebugservice_p.h>
#include <QtCore/qelapsedtimer.h>
#include <QtCore/qmutex.h>
+#include <QtCore/qvector.h>
QT_BEGIN_HEADER
QByteArray toByteArray() const;
};
+Q_DECLARE_TYPEINFO(QDeclarativeDebugData, Q_MOVABLE_TYPE);
+
class QUrl;
class QDeclarativeEngine;
bool m_enabled;
bool m_deferredSend;
bool m_messageReceived;
- QList<QDeclarativeDebugData> m_data;
+ QVector<QDeclarativeDebugData> m_data;
QMutex m_mutex;
};