diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-09-21 17:44:57 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-11 10:38:33 (GMT) |
commit | afffa7cd099379d78ada4c96c2284e87f77d7bb2 (patch) | |
tree | aee4f1fb3bc40381614bc3a9673f1dd1d88c9ef8 /doc/src/snippets/code/src_script_qscriptvalueiterator.cpp | |
parent | 1502df3ddedc5a4365e12bce570d946744259785 (diff) | |
download | Qt-afffa7cd099379d78ada4c96c2284e87f77d7bb2.zip Qt-afffa7cd099379d78ada4c96c2284e87f77d7bb2.tar.gz Qt-afffa7cd099379d78ada4c96c2284e87f77d7bb2.tar.bz2 |
QNAM: Avoid using toLower for case insensitive comparision
Using qstricmp is faster on the desktop than the alloc of
QByteArray::toLower and the QByteArray::operator==.
QChar::toLower will now be called for the input key from
within the loop. In the measurements done this is still
a performance improvement over the allocation done by
QByteArray::toLower. For more header values this might
not be the case anymore.
RESULT : tst_Loading::byteArrayTestLower():
0.00076 msec per iteration (total: 25, iterations: 32768)
RESULT : tst_Loading::byteArrayTestCompare():
0.00028 msec per iteration (total: 37, iterations: 131072)
Reviewed-By: Markus Goetz
Diffstat (limited to 'doc/src/snippets/code/src_script_qscriptvalueiterator.cpp')
0 files changed, 0 insertions, 0 deletions