diff options
author | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-02 10:49:19 (GMT) |
---|---|---|
committer | Ariya Hidayat <ariya.hidayat@nokia.com> | 2009-09-02 11:07:14 (GMT) |
commit | b40fa8468af9015af8181dc67c79db4877437d33 (patch) | |
tree | 607c246c92b6e275548348ae944efa369306ce40 /src/corelib/tools/qsharedpointer.h | |
parent | 4fd28ba87492f2f4725e48f1a3e30ed8cd099081 (diff) | |
download | Qt-b40fa8468af9015af8181dc67c79db4877437d33.zip Qt-b40fa8468af9015af8181dc67c79db4877437d33.tar.gz Qt-b40fa8468af9015af8181dc67c79db4877437d33.tar.bz2 |
Speed-up id look-up for SVG node.
Since we are iterating all the XML attributes, we find and locate the id
while we are inside the loop. Thus, no need to retrieve the id via
QXmlStreamAttributes::value().
Also, get rid of someId(QSvgAttributes) function and use the 'id' member
variable directly.
Loading tiger.svg (tests/benchmarks/qsvgrenderer) enjoys 1.2% speed-up.
Reviewed-by: Kim
Diffstat (limited to 'src/corelib/tools/qsharedpointer.h')
0 files changed, 0 insertions, 0 deletions