Merge lp:~aacid/unity-scopes-shell/optimize_resultsmodel_data into lp:unity-scopes-shell
Proposed by
Albert Astals Cid
Status: | Merged |
---|---|
Approved by: | Marcus Tomlinson |
Approved revision: | 338 |
Merged at revision: | 347 |
Proposed branch: | lp:~aacid/unity-scopes-shell/optimize_resultsmodel_data |
Merge into: | lp:unity-scopes-shell |
Diff against target: |
185 lines (+50/-34) 2 files modified
src/Unity/resultsmodel.cpp (+48/-32) src/Unity/resultsmodel.h (+2/-2) |
To merge this branch: | bzr merge lp:~aacid/unity-scopes-shell/optimize_resultsmodel_data |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Marcus Tomlinson (community) | Approve | ||
Review via email: mp+300883@code.launchpad.net |
Commit message
Optimize ResultsModel::data a bit
Do the role to component string early in ::setComponents
This way we do not need to create temporary strings every time ::data gets called
Also since we know there's a finite amount of roles, store the role->string mapping in a vector instead of a map/hash
To post a comment you must log in.
Looks good.