diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 14:14:45 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 14:54:28 (GMT) |
commit | 89030379ea1c2621fca24d91eaff92aea44686da (patch) | |
tree | eaf9fe2e12b82e0671b076e6b7e9538a2811d9ed /mkspecs/linux-g++-32 | |
parent | c94439e3d20b79db7df3e6b23b6753652b812e1f (diff) | |
download | Qt-89030379ea1c2621fca24d91eaff92aea44686da.zip Qt-89030379ea1c2621fca24d91eaff92aea44686da.tar.gz Qt-89030379ea1c2621fca24d91eaff92aea44686da.tar.bz2 |
Speed-up floating-point decoding for SVG parsing.
Instead of comparing the character to '0' and '9', use bit fiddling
to detect that the character is a digit between '0' and '9'.
Loading tiger.svg (tests/benchmarks/qsvgrenderer) is now 10% faster,
going down from 85.3 millions instructions to 77.2 millions.
Mostly this is due 46% speed-up in parseNumbersList() function,
from 26.9 millions instructions to just 18.4 millions.
Reviewed-by: Kim
Diffstat (limited to 'mkspecs/linux-g++-32')
0 files changed, 0 insertions, 0 deletions