summaryrefslogtreecommitdiffstats
path: root/src/svg/qsvgrenderer.cpp
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-08-31 10:28:11 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-08-31 11:01:20 (GMT)
commit98a6783f855318cc1be5857fd175a494c531fea2 (patch)
treeb4af5b5badaf1b86c40e952c54ab7fd522d5bdf2 /src/svg/qsvgrenderer.cpp
parent076b5d3bc4a5b29886e946942ecd6eab1dde3d51 (diff)
downloadQt-98a6783f855318cc1be5857fd175a494c531fea2.zip
Qt-98a6783f855318cc1be5857fd175a494c531fea2.tar.gz
Qt-98a6783f855318cc1be5857fd175a494c531fea2.tar.bz2
Faster attributes iteration in QSvgAttributes constructor.
Use switch/case to give a faster short-cut when comparing strings. Loading tiger.svg (tests/benchmarks/qsvgrenderer) is 3% faster now. This is mostly because QSvgAttributes constructor goes down from 11.04 millions instructions to just 8.54 millions. Reviewed-by: Kim
Diffstat (limited to 'src/svg/qsvgrenderer.cpp')
0 files changed, 0 insertions, 0 deletions