qt5base-lts/tests/benchmarks/corelib/tools/tools.pro
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

23 lines
448 B
Prolog

TEMPLATE = subdirs
SUBDIRS = \
containers-associative \
containers-sequential \
qbytearray \
qcontiguouscache \
qcryptographichash \
qdatetime \
qlist \
qlocale \
qmap \
qrect \
qringbuffer \
qstack \
qstring \
qstringbuilder \
qstringlist \
qtimezone \
qvector \
qalgorithms
!*g++*: SUBDIRS -= qstring