qt5base-lts/tests/auto/corelib/tools/qstring
Lars Knoll 5279134935 Reuse one QCollator instance for QString::localeAwareCompare
Constructing a QCollator is somewhat expensive, and made
localeAwareCompare really slow. As QCollator (at least with
the ICU implementation) is not thread safe, use one collator
per thread. This speeds up collation of a long list of strings
by a factor of 250 for the test case in the bug below.

Task-number: QTBUG-36149
Change-Id: I645cdc3546347d1dcc7a03b7563b628c7f756944
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2014-03-27 07:31:01 +01:00
..
.gitignore Moving relevant tests to corelib/tools 2011-09-01 13:07:23 +02:00
double_data.h Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
qstring.pro Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qstring_mac.mm Add Mac type conversion functions to QtCore 2013-09-21 05:09:41 +02:00
tst_qstring.cpp Reuse one QCollator instance for QString::localeAwareCompare 2014-03-27 07:31:01 +01:00