Merge lp:~nik90/ubuntu-clock-app/replace-base-list-items into lp:ubuntu-clock-app
Status: | Merged |
---|---|
Approved by: | Riccardo Padovani |
Approved revision: | 152 |
Merged at revision: | 151 |
Proposed branch: | lp:~nik90/ubuntu-clock-app/replace-base-list-items |
Merge into: | lp:ubuntu-clock-app |
Diff against target: |
147 lines (+34/-10) 4 files modified
app/alarm/AlarmSettingsPage.qml (+22/-7) app/components/SubtitledListItem.qml (+7/-2) app/worldclock/WorldCityList.qml (+3/-1) debian/changelog (+2/-0) |
To merge this branch: | bzr merge lp:~nik90/ubuntu-clock-app/replace-base-list-items |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Riccardo Padovani | Approve | ||
Ubuntu Phone Apps Jenkins Bot | continuous-integration | Approve | |
Review via email:
|
Commit message
Replaces the use of ListItem.Base with ListItem.Empty throughout the clock app for performance reasons.
Description of the change
This MP replaces the use of ListItem.Base with ListItem.Empty throughout the clock app for the following reasons,
- ListItem.Base is a basic listitem which provides support for Icon and progression icon as per SDK API docs. However in the clock app we don't need support of either of them since we don't use it :). As such the ListItem.Empty would suit us better (with no visual changes)
- ListItem.Empty in all cases that I have tested is created in about ~2.5ms while ListItem.Base takes about ~5.5ms to be created. We are thereby improving the performance (slightly). This becomes important when considering the WorldCityList.qml file where we have a listview. By switching the delegates to ListItem.Empty we save a good amount of creation time (cumulatively speaking).
Ofc here is the proof ;-)
Old Performance -> https:/
New Performance -> https:/
WorldCityDelegate performance
Old Performance -> https:/
New Performance -> https:/
PASSED: Continuous integration, rev:152 91.189. 93.70:8080/ job/ubuntu- clock-app- ci/566/ 91.189. 93.70:8080/ job/generic- mediumtests- utopic- python3/ 968 91.189. 93.70:8080/ job/generic- mediumtests- utopic- python3/ 968/artifact/ work/output/ *zip*/output. zip
http://
Executed test runs:
SUCCESS: http://
deb: http://
Click here to trigger a rebuild: 91.189. 93.70:8080/ job/ubuntu- clock-app- ci/566/ rebuild
http://