diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2009-09-22 10:35:29 (GMT) |
---|---|---|
committer | Markus Goetz <Markus.Goetz@nokia.com> | 2009-11-11 10:38:33 (GMT) |
commit | a7dfc472b06966393a9d9c394d91ed8974b9cfb6 (patch) | |
tree | 3d134d7b169574b64b0d8dd28003254be45fc3fc /src/network/access/qnetworkrequest.cpp | |
parent | afffa7cd099379d78ada4c96c2284e87f77d7bb2 (diff) | |
download | Qt-a7dfc472b06966393a9d9c394d91ed8974b9cfb6.zip Qt-a7dfc472b06966393a9d9c394d91ed8974b9cfb6.tar.gz Qt-a7dfc472b06966393a9d9c394d91ed8974b9cfb6.tar.bz2 |
QNAM: Remove some more occurences of toLower on the hot path
toLower will force a memory allocation, and memory allocations
are certainly adding a delay. Use qstricmp were this is easily
possible. This change makes headerValues et all drop out of
the profile.
QChar::toLower will now be called more often, specially for
loops that do linear searching. In the profile with real web
content this is faster than using QByteArry::toLower in the
inner loop and the forced memory allocations.
Reviewed-By: Markus Goetz
Diffstat (limited to 'src/network/access/qnetworkrequest.cpp')
0 files changed, 0 insertions, 0 deletions