qt5base-lts/tests/auto
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
..
android Adding CI utilities to Android test script 2013-10-30 11:29:04 +01:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Teach CMake about Qt 5 plugins. 2013-09-10 14:38:18 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent QtConcurrent: Workaround GCC bug 58800 in median calculation 2013-12-03 11:45:18 +01:00
corelib Fix quadratic behavior in QMetaObjectBuilder when writing string table 2013-12-06 18:18:44 +01:00
dbus don't erroneously claim that gui support is needed 2013-10-16 17:10:15 +02:00
gui QTextEngine: fix layouting of inline objects in right-aligned tabs. 2013-12-05 16:40:06 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network QSslConfiguration: rename [get]session() to [get]sessionTicket() 2013-11-08 18:58:27 +01:00
opengl Mark tst_qgl as insignificant in angle build 2013-11-12 07:11:07 +01:00
other Fix a race that occurred as we unlock the mutex to destroy the functor in ~QObject 2013-11-26 08:24:25 +01:00
printsupport QPrinter - Fix OutputFormat when no printers 2013-11-29 15:59:00 +01:00
shared Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
sql don't unnecessarily use qtgui 2013-10-08 20:39:03 +02:00
testlib Testlib.selftest: Improve process execution, run on openSUSE. 2013-11-19 22:47:43 +01:00
tools Test that Qt tools can handle ' as a digit separator. 2013-10-30 09:44:07 +01:00
widgets Windows: Don't cover the taskbar when maximizing frameless windows 2013-12-06 13:52:34 +01:00
xml Fully expand entities to ensure deep or widely nested ones fail parsing 2013-11-14 17:43:58 +01:00
auto.pro exclude gui-needing tests from -no-gui build 2013-10-18 20:05:27 +02:00
network-settings.h network test settings: support newer FTP server versions 2013-08-28 12:45:34 +02:00
qtest-config.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
test.pl Whitespace cleanup: remove trailing whitespace 2013-03-16 20:22:50 +01:00