summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qbytearray.h
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2014-08-09 11:19:43 +0200
committerThiago Macieira <thiago.macieira@intel.com>2014-08-19 03:39:27 +0200
commit6dd759c8e947670f28dccba946138b7f8d609eaa (patch)
tree6abb72d3701554dec974c04831e9b02d482f1867 /src/corelib/tools/qbytearray.h
parentc250a0ec3a196247dde372cde3757913226386b0 (diff)
Optimize qstricmp()/qstrnicmp()
The latin1 conversion tables that were recently introduced to qbytearray.cpp to speed up QByteArray::to{Upper,Lower}() can also be used in qstr(n)icmp. This results in speedups between ~2 for strings with differences in the first char, to almost 10x for strings with differences only after 8k of data. Change-Id: I878ddb4c01c798069d439a9d33e24351fe1039d3 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
Diffstat (limited to 'src/corelib/tools/qbytearray.h')
0 files changed, 0 insertions, 0 deletions