qt5base-lts/tests/benchmarks/corelib/tools
David Faure 46ec170d2b Speed up QTimeZone::isTimeZoneIdAvailable by a factor 43
Creating and sorting a list of bytearrays just to check if one entry is
present, is really overkill. By adding a new virtual method
isTimeZoneIdAvailable() in the backend classes, we can do this much more
efficiently.

Implemented for Utc and Tz backends, the others fall back to the
slow way.

The new benchmark shows, in release mode:
Before: 43 msecs per iteration (total: 86, iterations: 2)
After: 1.1 msecs per iteration (total: 73, iterations: 64)

Change-Id: Ic0d79a41d74e2ce6aa088fa7986c41d33902c36b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2018-04-23 06:48:12 +00:00
..
containers-associative Updated license headers 2016-01-21 18:55:18 +00:00
containers-sequential Remove Windows CE from tests (others). 2016-03-31 06:14:04 +00:00
qalgorithms Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qbytearray Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qchar Updated license headers 2016-01-21 18:55:18 +00:00
qcontiguouscache Updated license headers 2016-01-21 18:55:18 +00:00
qcryptographichash Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qdatetime QDateTime::fromString(): improve performance by 33% 2017-01-03 13:37:49 +00:00
qhash Add Intel copyright to files that Intel has had non-trivial contribution 2016-01-21 22:44:21 +00:00
qlist Updated license headers 2016-01-21 18:55:18 +00:00
qlocale Updated license headers 2016-01-21 18:55:18 +00:00
qmap Updated license headers 2016-01-21 18:55:18 +00:00
qrect Updated license headers 2016-01-21 18:55:18 +00:00
qregexp Updated license headers 2016-01-21 18:55:18 +00:00
qringbuffer Updated license headers 2016-01-21 18:55:18 +00:00
qset Updated license headers 2016-01-21 18:55:18 +00:00
qstack Updated license headers 2016-01-21 18:55:18 +00:00
qstring Updated license headers 2016-01-21 18:55:18 +00:00
qstringbuilder Updated license headers 2016-01-21 18:55:18 +00:00
qstringlist Updated license headers 2016-01-21 18:55:18 +00:00
qtimezone Speed up QTimeZone::isTimeZoneIdAvailable by a factor 43 2018-04-23 06:48:12 +00:00
qvector Replace qAllocMore with a pair of more useful functions 2016-06-09 15:32:14 +00:00
tools.pro Speed up QTimeZone::isTimeZoneIdAvailable by a factor 43 2018-04-23 06:48:12 +00:00