Merge lp:~cjwatson/ubuntu-archive-publishing/parallel-germinate into lp:ubuntu-archive-publishing
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 44 |
Merged at revision: | 44 |
Proposed branch: | lp:~cjwatson/ubuntu-archive-publishing/parallel-germinate |
Merge into: | lp:ubuntu-archive-publishing |
Diff against target: |
176 lines (+74/-17) 2 files modified
lib/scripts/generate_extra_overrides.py (+70/-9) tests/test_generate_extra_overrides.py (+4/-8) |
To merge this branch: | bzr merge lp:~cjwatson/ubuntu-archive-publishing/parallel-germinate |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
William Grant | code | Approve | |
Ubuntu Package Archive Administrators | Pending | ||
Review via email: mp+222607@code.launchpad.net |
Commit message
Parallelise generate-
Description of the change
Parallelise generate-
I considered using the multiprocessing module, but gave up after six hours of fighting with obscure errors; it's simple enough to do by hand. Note that attempts to do this using threading instead are unlikely to scale well, as germinate is CPU-heavy and Python threads all have to share the GIL.
(This is ported from https:/
This should really use multiprocessing long-term, but it works for now.