diff options
author | Robin Burchell <robin.burchell@viroteck.net> | 2015-06-05 12:12:11 +0300 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@theqtcompany.com> | 2015-06-09 04:45:42 +0000 |
commit | 834f9c76151857b8e8bc07341f592187fafa11dc (patch) | |
tree | 365056886982d0cb20026d64cab46dfc928aa053 /tools/qmlprofiler | |
parent | 52d91eeea4f49d36c18efd39e12f2634992cb63b (diff) |
QQuickImageBase: Minimize the cost for devicePixelRatio setting.
* Don't convert QUrl to QString twice (that massively blows up transient
allocations and is very slow)
* Don't do anything at all if a sourceSize isn't set (checking it is super
cheap)
This fixes the performance regression (introduced in 428b92583ee2102c7ef16776a9b7785df7ff4e2c)
in the delegates_image creation benchmark (from ~520 up to ~540 items per frame).
Change-Id: I1cd350e42e763b7a771ff207d23e3e411810b268
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
Diffstat (limited to 'tools/qmlprofiler')
0 files changed, 0 insertions, 0 deletions