https://forge.softwareheritage.org/source/swh-scheduler.git
Revision f5c815435bf604e409a322dd543ef513c01afc13 authored by David Douard on 10 September 2020, 09:25:08 UTC, committed by David Douard on 10 September 2020, 15:46:08 UTC
by moving import statements in functions and using conditional
import of typechecking modules (especially StorageInterface which
triggers the loading of 300+ modules).

Related to T2575.
1 parent b24be0c
History
Tip revision: f5c815435bf604e409a322dd543ef513c01afc13 authored by David Douard on 10 September 2020, 09:25:08 UTC
cli: speedup the `swh` cli command startup time
Tip revision: f5c8154
File Mode Size
data
docs
sql
swh
.gitignore -rw-r--r-- 129 bytes
.pre-commit-config.yaml -rw-r--r-- 882 bytes
AUTHORS -rw-r--r-- 112 bytes
CODE_OF_CONDUCT.md -rw-r--r-- 3.3 KB
CONTRIBUTORS -rw-r--r-- 14 bytes
LICENSE -rw-r--r-- 34.3 KB
LICENSE.Celery -rw-r--r-- 2.6 KB
MANIFEST.in -rw-r--r-- 154 bytes
Makefile -rw-r--r-- 163 bytes
README.md -rw-r--r-- 292 bytes
conftest.py -rw-r--r-- 591 bytes
mypy.ini -rw-r--r-- 550 bytes
pyproject.toml -rw-r--r-- 39 bytes
pytest.ini -rw-r--r-- 33 bytes
requirements-swh.txt -rw-r--r-- 50 bytes
requirements-test.txt -rw-r--r-- 92 bytes
requirements.txt -rw-r--r-- 384 bytes
setup.cfg -rw-r--r-- 247 bytes
setup.py -rwxr-xr-x 2.3 KB
tox.ini -rw-r--r-- 664 bytes

README.md

back to top