summaryrefslogtreecommitdiffstats
path: root/src/scripttools/debugging/qscriptdebuggerstackwidgetinterface.cpp
diff options
context:
space:
mode:
authorKonstantin Ritt <ritt.ks@gmail.com>2011-01-11 13:12:01 (GMT)
committerOlivier Goffart <olivier.goffart@nokia.com>2011-01-11 13:12:01 (GMT)
commitb500b9f35fbeaa5f0fe8bfaf7b225518bf6e636f (patch)
treeddc7bc7e013343374c8ec3ee8260821c95624c22 /src/scripttools/debugging/qscriptdebuggerstackwidgetinterface.cpp
parent540fbb2aec0e9187acd75598a050edf8929e1d68 (diff)
downloadQt-b500b9f35fbeaa5f0fe8bfaf7b225518bf6e636f.zip
Qt-b500b9f35fbeaa5f0fe8bfaf7b225518bf6e636f.tar.gz
Qt-b500b9f35fbeaa5f0fe8bfaf7b225518bf6e636f.tar.bz2
use qBinaryFind instead of bsearch
depending on platform, qBinaryFind might be up to 3 times faster than bsearch or a bit bit slower at the worst case; so why don't simply use qBinaryFind instead of bsearch and be an optimist? ;) also we know that all color names are in the lower case already and thus we can avoid lowercasing of them again and again, and again; the name to find needs to be lowercased separately instead. some color-by-name-lookup numbers: before: 0.000737 msecs per iteration (total: 3,684, iterations: 5000000) after: 0.000154 msecs per iteration (total: 771, iterations: 5000000) Merge-request: 906 Reviewed-by: Olivier Goffart <olivier.goffart@nokia.com>
Diffstat (limited to 'src/scripttools/debugging/qscriptdebuggerstackwidgetinterface.cpp')
0 files changed, 0 insertions, 0 deletions