diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2014-12-09 00:47:46 -0800 |
---|---|---|
committer | Robin Burchell <robin.burchell@viroteck.net> | 2014-12-17 08:55:16 +0100 |
commit | b10570d6498c0789d81cd287a5c1165d9a23d257 (patch) | |
tree | d5271b5c167997670752b5446715306af54fb453 /src/qml/qml/qqmlcompiler_p.h | |
parent | 7f325ecbc2875b17fb95e13de3073bf29d3fb348 (diff) |
Simple cache of url for QQmlCompiledData
Removes URL parsing and allocation/deallocation overhead as a bottleneck from
cached instantiation. Takes total runtime percentage of beginCreate from 6208ms
to 4987ms out of a 15 second trace of the instantiation_cached librarymetrics
benchmark with the empty Item data.
Task-number: QTBUG-43096
Change-Id: Ie4ec8e83461b4926e502dd78a7178cc8e8131e70
Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'src/qml/qml/qqmlcompiler_p.h')
-rw-r--r-- | src/qml/qml/qqmlcompiler_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/qml/qqmlcompiler_p.h b/src/qml/qml/qqmlcompiler_p.h index 5e76533739..3569a106c9 100644 --- a/src/qml/qml/qqmlcompiler_p.h +++ b/src/qml/qml/qqmlcompiler_p.h @@ -84,7 +84,7 @@ public: QQmlEngine *engine; QString fileName() const { return compilationUnit->fileName(); } - QUrl url() const { return QUrl(fileName()); } + QUrl url() const { return compilationUnit->url(); } QQmlTypeNameCache *importCache; int metaTypeId; |