diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 11:33:25 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-08-31 11:52:36 (GMT) |
commit | 52c8038b3c8eb8974a7740f42326b27b32416bc4 (patch) | |
tree | 53cc3541f588d638fa18a7b6902f67fa6ce509de /doc/src/snippets/textdocument-printing/mainwindow.cpp | |
parent | 029b085b68e6c62b213492def16b5add282c0f1c (diff) | |
download | Qt-52c8038b3c8eb8974a7740f42326b27b32416bc4.zip Qt-52c8038b3c8eb8974a7740f42326b27b32416bc4.tar.gz Qt-52c8038b3c8eb8974a7740f42326b27b32416bc4.tar.bz2 |
Speed-up parsePen() function for SVG parsing.
Try to use QStringRef as much as possible and defer any QStringRef
to QString until it is absolutely necessary.
When loading tiger.svg (tests/benchmarks/qsvgrenderer), the time spent
in parsePen() goes down from 1.75 millions instructions to just
0.85 millions.
Reviewed-by: Kim
Diffstat (limited to 'doc/src/snippets/textdocument-printing/mainwindow.cpp')
0 files changed, 0 insertions, 0 deletions