Merge lp:~wgrant/launchpad/bug-816870 into lp:launchpad
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | William Grant | ||||
Approved revision: | no longer in the source branch. | ||||
Merged at revision: | 15365 | ||||
Proposed branch: | lp:~wgrant/launchpad/bug-816870 | ||||
Merge into: | lp:launchpad | ||||
Diff against target: |
115 lines (+25/-39) 3 files modified
lib/lp/registry/browser/distribution.py (+1/-1) lib/lp/registry/model/distribution.py (+22/-36) lib/lp/soyuz/browser/tests/distribution-views.txt (+2/-2) |
||||
To merge this branch: | bzr merge lp:~wgrant/launchpad/bug-816870 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Richard Harding (community) | Approve | ||
Review via email: mp+108728@code.launchpad.net |
Commit message
Optimise the two really slow bits of Distribution:
Description of the change
This branch hopefully fixes the parts of Distribution:
Firstly, has_exact_matches no longer does a slow count(). is_empty() is fine for its purposes. Secondly, searchBinaryPac
DistributionSou
Thanks, it goes against everything I know to say LIKES are the fast way, but looks like your numbers say it's so.