qt5base-lts/tests/benchmarks/corelib/tools/qlocale
hjk 01cbd7e4b5 Remove QLocalePrivate::m_localeID
It was only used for toUpper/toLower but always computed in the
constructor, including QString::toLatin1 conversion and allocations.

This needlessly slows down all other uses, including supposedly "cheap"
operations QString::toDouble, or accesses inside QResourceFileEngine.

The benchmarks indicates that doing it always when needed is bearable.
There's still a lot of improvement potential on these code paths.

Change-Id: I88b637ee11f9f7ea614f8da4ec5df0bf40664fce
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2013-04-23 18:57:45 +02:00
..
main.cpp Remove QLocalePrivate::m_localeID 2013-04-23 18:57:45 +02:00
qlocale.pro Remove QLocalePrivate::m_localeID 2013-04-23 18:57:45 +02:00