Merge lp:~donadigo/appcenter/refactor-package-class into lp:~elementary-apps/appcenter/appcenter
Proposed by
Adam Bieńkowski
Status: | Merged |
---|---|
Approved by: | Corentin Noël |
Approved revision: | 355 |
Merged at revision: | 363 |
Proposed branch: | lp:~donadigo/appcenter/refactor-package-class |
Merge into: | lp:~elementary-apps/appcenter/appcenter |
Diff against target: |
189 lines (+55/-35) 1 file modified
src/Core/Package.vala (+55/-35) |
To merge this branch: | bzr merge lp:~donadigo/appcenter/refactor-package-class |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Danielle Foré | Approve | ||
Review via email: mp+313878@code.launchpad.net |
Commit message
Package.vala:
* Use GObject-style construction
* Cache properties
Description of the change
This branch refactors package class, to improve performance and reduce unneded operations.
The class now uses GObject construction. In addition, instead of always getting the property of the class like name, summary and version, it has each property saved, so there is no need for getting the property again, the packagekit package is also cached.
To post a comment you must log in.
Looks good. I haven't noticed any issues with this branch :)