From 12905fa30f3b92d28dff0e4dc6f32ea516cc42f6 Mon Sep 17 00:00:00 2001 From: Lars Knoll Date: Mon, 1 Jul 2013 15:26:01 +0200 Subject: Cut away 2/3 of the startup time on Linux Optimize the parser of the X11 compose tables. Parsing these was responsible for over 90% of the startup time in Qt 5.1. Change-Id: Ifddc3f30828791e51a755f92791c26ffe43a9cd3 Reviewed-by: Konstantin Ritt Reviewed-by: Lars Knoll --- .../platforminputcontexts/compose/qcomposeplatforminputcontext.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontext.h') diff --git a/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontext.h b/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontext.h index 1ced2f8ded..def63486a7 100644 --- a/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontext.h +++ b/src/plugins/platforminputcontexts/compose/qcomposeplatforminputcontext.h @@ -75,7 +75,7 @@ protected: private: QObject *m_focusObject; - QList m_composeTable; + QVector m_composeTable; uint m_composeBuffer[QT_KEYSEQUENCE_MAX_LEN + 1]; TableGenerator::TableState m_tableState; }; -- cgit v1.2.3