diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-02 11:51:47 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-03 11:42:40 (GMT) |
commit | e3c62dc1def9270761ca63c73ae76fdca9d61582 (patch) | |
tree | 4d6d091ab3533fc2876e451160cfdf04a4c4c42a /demos/browser | |
parent | 5e3775ae4c5263a25e63868e8a3f16244e4dde02 (diff) | |
download | Qt-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 'demos/browser')
0 files changed, 0 insertions, 0 deletions