Merge lp://qastaging/~aacid/ubuntu-ui-toolkit/prefer_image_if_it_exists into lp://qastaging/ubuntu-ui-toolkit/staging
Proposed by
Albert Astals Cid
Status: | Merged |
---|---|
Approved by: | Cris Dywan |
Approved revision: | 2038 |
Merged at revision: | 2038 |
Proposed branch: | lp://qastaging/~aacid/ubuntu-ui-toolkit/prefer_image_if_it_exists |
Merge into: | lp://qastaging/ubuntu-ui-toolkit/staging |
Diff against target: |
55 lines (+11/-12) 1 file modified
src/Ubuntu/UbuntuToolkit/ucunits.cpp (+11/-12) |
To merge this branch: | bzr merge lp://qastaging/~aacid/ubuntu-ui-toolkit/prefer_image_if_it_exists |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
ubuntu-sdk-build-bot | continuous-integration | Approve | |
Cris Dywan | Approve | ||
Andrea Bernabei (community) | Approve | ||
Review via email: mp+300488@code.qastaging.launchpad.net |
Commit message
UCUnits:
This saves searching the disk for @gu images, which is a big speedup
According to callgrind loading 100 images from a folder that contains 380 images goes from
around 3 million instructions per UCUnits:
This optimization is ok since it is not correct to ship both
image.png
and
you either have to ship gu-enabled files or not, but mixing them is not allowed.
Searched for cases in which that may be happening in my phone and found none.
To post a comment you must log in.
PASSED: Continuous integration, rev:2036 /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-amd64- stable/ 1085/ /jenkins. ubuntu. com/ubuntu- sdk/job/ generic- update- mp/4531/ console
https:/
Executed test runs:
None: https:/
Click here to trigger a rebuild: /jenkins. ubuntu. com/ubuntu- sdk/job/ ubuntu- ui-toolkit- ci-amd64- stable/ 1085/rebuild
https:/