diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 10:42:49 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 11:46:24 (GMT) |
commit | 029b085b68e6c62b213492def16b5add282c0f1c (patch) | |
tree | 2060ae2650ec624f8c22c3d11861588a39359e63 /doc/src/snippets/moc/main.cpp | |
parent | bcc023118ef5efc2f604498eb3b80c6d63338360 (diff) | |
download | Qt-029b085b68e6c62b213492def16b5add282c0f1c.zip Qt-029b085b68e6c62b213492def16b5add282c0f1c.tar.gz Qt-029b085b68e6c62b213492def16b5add282c0f1c.tar.bz2 |
Speed-up parseBrush() function for SVG parsing.
Use QStringRef as much as possible and leave the remaining QStringRef to
QString conversion until it is absolutely necessary.
When loading tiger.svg (tests/benchmarks/qsvgrenderer), the time spent
in parseBrush() goes down from 1.5 millions instructions to 1.2 millions.
Reviewed-by: Kim
Diffstat (limited to 'doc/src/snippets/moc/main.cpp')
0 files changed, 0 insertions, 0 deletions