diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 10:28:11 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 11:01:20 (GMT) |
commit | 98a6783f855318cc1be5857fd175a494c531fea2 (patch) | |
tree | b4af5b5badaf1b86c40e952c54ab7fd522d5bdf2 /src/svg/qsvgrenderer.cpp | |
parent | 076b5d3bc4a5b29886e946942ecd6eab1dde3d51 (diff) | |
download | Qt-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