summaryrefslogtreecommitdiffstats
path: root/src/gui/graphicsview
diff options
context:
space:
mode:
authorAriya Hidayat <ariya.hidayat@nokia.com>2009-09-02 11:51:47 (GMT)
committerAriya Hidayat <ariya.hidayat@nokia.com>2009-09-03 11:42:40 (GMT)
commite3c62dc1def9270761ca63c73ae76fdca9d61582 (patch)
tree4d6d091ab3533fc2876e451160cfdf04a4c4c42a /src/gui/graphicsview
parent5e3775ae4c5263a25e63868e8a3f16244e4dde02 (diff)
downloadQt-e3c62dc1def9270761ca63c73ae76fdca9d61582.zip
Qt-e3c62dc1def9270761ca63c73ae76fdca9d61582.tar.gz
Qt-e3c62dc1def9270761ca63c73ae76fdca9d61582.tar.bz2
CSS parser speed-up: skip the need to call toLower().
Instead of taking the lowercase of each tokenized character, it is better to encode the logic in the automaton itself. During the parsing of tiger.svg (tests/benchmarks/qsvgrenderer), the time spent inside QCssScanner_Generated::lex() goes down from 0.53 millions instructions to just 0.23 millions (2x faster). Autotests for qcssparser, qtextdocumentfragment, qstylesheet still pass. Reviewed-by: Simon Hausmann
Diffstat (limited to 'src/gui/graphicsview')
0 files changed, 0 insertions, 0 deletions