Merge ~cjwatson/launchpad:inline-zope.app.wsgi into launchpad:master
Status: | Merged |
---|---|
Approved by: | Colin Watson |
Approved revision: | 2928aa000d39b70ccbab796b18dc0cf63917aea4 |
Merge reported by: | Otto Co-Pilot |
Merged at revision: | not available |
Proposed branch: | ~cjwatson/launchpad:inline-zope.app.wsgi |
Merge into: | launchpad:master |
Prerequisite: | ~cjwatson/launchpad:inline-zope.session |
Diff against target: |
357 lines (+172/-30) 8 files modified
lib/lp/services/webapp/wsgi.py (+83/-1) lib/lp/testing/layers.py (+2/-7) lib/lp/testing/pages.py (+84/-1) lib/lp_sitecustomize.py (+1/-12) requirements/launchpad.txt (+0/-3) setup.cfg (+0/-1) utilities/list-pages (+2/-2) zcml/zopeapp.zcml (+0/-3) |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrey Fedoseev (community) | Approve | ||
Review via email: mp+426610@code.launchpad.net |
Commit message
Inline relevant parts of zope.app.wsgi
Description of the change
This removes a number of packages from the virtualenv:
ZConfig
ZODB
zc.lockfile
zdaemon
zodbpickle
zope.app.appsetup
zope.app.wsgi
zope.minmax
zope.session
zope.site
This saves perhaps 5% off startup time (measured by median of five runs of `bin/py -c ''`), 10% off the time taken to execute ZCML (measured by median of five runs of `bin/harness </dev/null`), and paves the way for some further improvements by generally trimming cruft from our dependency tree.
I considered instead pruning the tree by making `ZODB` an optional dependency of `zope.app.
Looks good