Merge lp:~vorlon/ubuntu-archive-tools/queue-item-scaling into lp:ubuntu-archive-tools
Proposed by
Steve Langasek
Status: | Merged |
---|---|
Merged at revision: | 568 |
Proposed branch: | lp:~vorlon/ubuntu-archive-tools/queue-item-scaling |
Merge into: | lp:ubuntu-archive-tools |
Diff against target: |
39 lines (+5/-4) 1 file modified
queue (+5/-4) |
To merge this branch: | bzr merge lp:~vorlon/ubuntu-archive-tools/queue-item-scaling |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson | Approve | ||
Review via email: mp+118166@code.launchpad.net |
Description of the change
"if not item in list [...] list.append(item)" doesn't scale so good. Use a
set instead so the queue command will scale to handling the 800+ matches for
'queue accept language-pack'.
To post a comment you must log in.
I think this will break ordering in 'queue info'. How about using OrderedDict instead? (Or the collections documentation has
collections.
a link to a recipe for OrderedSet.)