qt5base-lts/tests/auto/corelib
Simon Hausmann 105d10dea9 Fix quadratic behavior in QMetaObjectBuilder when writing string table
QHash::key() is O(n) and we're calling it n times. That can make repeated
calls to the meta object builder very slow, as for example QQmlPropertyMap
when inserting properties repeatedly.

Fortunately this is easy to fix, as the value in the hash map is also the
index, so we can simply iterate over the hash once. With the exception of
the class name, which we have to treat specially to ensure that it is always
the first entry in the string table.

Task-number: QTBUG-32720
Change-Id: Ic954c45c454107feee83216131f601cc69d4c63b
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
2013-12-06 18:18:44 +01:00
..
animation don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
codecs Allow non-character codes in utf8 strings 2013-10-17 09:50:58 +02:00
global tst_QFlags: make constExpr() check compile on clang trunk 2013-11-07 03:06:29 +01:00
io tests: fix tst_QSettings on Mac 2013-11-27 22:40:14 +01:00
itemmodels exclude gui-needing tests from -no-gui build 2013-10-18 20:05:27 +02:00
json Allow non-character codes in utf8 strings 2013-10-17 09:50:58 +02:00
kernel Fix quadratic behavior in QMetaObjectBuilder when writing string table 2013-12-06 18:18:44 +01:00
mimetypes Add QT_NO_PROCESS guards in tests where they are missing 2013-09-03 08:42:24 +02:00
plugin qcompilerdetection.h: add Q_COMPILER_UNIFORM_INIT 2013-11-15 06:30:53 +01:00
statemachine don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
thread Fix test compilation on WinRT 2013-11-26 20:29:09 +01:00
tools QCommandLineParser: pluck some low-hanging fruit re: exception safety 2013-12-06 08:44:31 +01:00
xml Check for network module when building according auto tests 2013-02-19 19:20:53 +01:00
corelib.pro Import QMimeType / QMimeDatabase into QtCore. 2012-02-18 22:19:43 +01:00