diff options
author | Marc Mutz <marc.mutz@kdab.com> | 2015-01-21 00:51:34 +0100 |
---|---|---|
committer | Marc Mutz <marc.mutz@kdab.com> | 2015-02-17 15:03:18 +0000 |
commit | d8d114989ab653cf77304cafc65392d295212c00 (patch) | |
tree | 423f1c2d71dd959c4e1189f664acc251619cc3cf /src/corelib/tools/qstring.cpp | |
parent | 62475eb8b09ab1d26ba02032e110bb44872392a6 (diff) |
QDateTime: optimize rfcDateImpl()
Get the captured texts once and use indexing into the QStringList
instead of repeatedly calling QRegExp::cap(n).
(Impressive) effects on Linux GCC 4.9 stripped release builds:
text -2876B
data +-0B
relocs +-0
Change-Id: I3a02eab1a691f31c30654cd89a0c030414b40de0
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
0 files changed, 0 insertions, 0 deletions