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.
Paths
| Differential D3907 Authored by douardda on Sep 10 2020, 3:59 PM.
Details
Summary by moving import statements in functions and using conditional Related to T2575.
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptSep 10 2020, 3:59 PM2020-09-10 15:59:39 (UTC+2) Comment Actions Build has FAILED Patch application report for D3907 (id=13766)Rebasing onto b24be0c78f... Current branch diff-target is up to date. Changes applied before testcommit 8f15eb8ab23cfd82dd1763e0340946b69fbb1868 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time 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. Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/58/ Harbormaster failed remote builds in B14993: Diff 13766!Sep 10 2020, 4:01 PM2020-09-10 16:01:39 (UTC+2) Comment Actions Build has FAILED Patch application report for D3907 (id=13779)Rebasing onto b24be0c78f... Current branch diff-target is up to date. Changes applied before testcommit 8f15eb8ab23cfd82dd1763e0340946b69fbb1868 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time 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. Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/59/ Harbormaster failed remote builds in B15006: Diff 13779!Sep 10 2020, 4:25 PM2020-09-10 16:25:48 (UTC+2) Comment Actions Build has FAILED Patch application report for D3907 (id=13808)Rebasing onto b24be0c78f... Current branch diff-target is up to date. Changes applied before testcommit a5cfc1ca68f3408ec0f73a15dc5f1a95bc170060 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time 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. Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/60/ Harbormaster failed remote builds in B15033: Diff 13808!Sep 10 2020, 5:34 PM2020-09-10 17:34:13 (UTC+2) Comment Actions Build is green Patch application report for D3907 (id=13812)Rebasing onto b24be0c78f... Current branch diff-target is up to date. Changes applied before testcommit f5c815435bf604e409a322dd543ef513c01afc13 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 11:25:08 2020 +0200 cli: speedup the `swh` cli command startup time 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. See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/61/ for more details. Harbormaster completed remote builds in B15037: Diff 13812.Sep 10 2020, 5:49 PM2020-09-10 17:49:01 (UTC+2) This revision is now accepted and ready to land.Sep 10 2020, 6:48 PM2020-09-10 18:48:09 (UTC+2) Closed by commit rDSCHf5c815435bf6: cli: speedup the `swh` cli command startup time (authored by douardda). · Explain WhySep 11 2020, 10:33 AM2020-09-11 10:33:03 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 13823 swh/scheduler/cli/__init__.py
swh/scheduler/cli/admin.py
swh/scheduler/cli/celery_monitor.py
swh/scheduler/cli/task.py
|