by moving import statements in functions, as well as preventing
the loading of swh.storage.interface in swh.storage unless needed
for type checking.
Related to T2575.
Differential D3921
cli: speedup the `swh` cli command startup time douardda on Sep 10 2020, 4:25 PM. Authored by
Details
by moving import statements in functions, as well as preventing Related to T2575.
Diff Detail
Event TimelineComment Actions Build has FAILED Patch application report for D3921 (id=13781)Rebasing onto d24a1e7732... First, rewinding head to replay your work on top of it... Applying: cli: speedup the `swh` cli command startup time Changes applied before testcommit 11fb17cb7ec5f5d801fd73cb68376d72b1fbb631 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 15:15:33 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions, as well as preventing the loading of swh.storage.interface in swh.storage unless needed for type checking. Related to T2575. Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/915/ Comment Actions Build has FAILED Patch application report for D3921 (id=13811)Rebasing onto d24a1e7732... First, rewinding head to replay your work on top of it... Applying: cli: speedup the `swh` cli command startup time Changes applied before testcommit 2822031b8db2d9bd2510b5df7b63af0bde551122 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 15:15:33 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions, as well as preventing the loading of swh.storage.interface in swh.storage unless needed for type checking. Related to T2575. Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/916/ Comment Actions Build has FAILED Patch application report for D3921 (id=13814)Rebasing onto d24a1e7732... First, rewinding head to replay your work on top of it... Applying: cli: speedup the `swh` cli command startup time Changes applied before testcommit ab81a73d2ef97f38a730aa0a99b1de860d7c42d2 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 15:15:33 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions, as well as preventing the loading of swh.storage.interface in swh.storage unless needed for type checking. Related to T2575. Link to build: https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/917/ Comment Actions Build is green Patch application report for D3921 (id=13829)Rebasing onto d24a1e7732... Current branch diff-target is up to date. Changes applied before testcommit fd6d72f98ee8c79feaced17e44fe1076f71d0595 Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 15:15:33 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions, as well as preventing the loading of swh.storage.interface in swh.storage unless needed for type checking. Related to T2575. See https://jenkins.softwareheritage.org/job/DSTO/job/tests-on-diff/918/ for more details. |
We should catch a keyError exception instead since it could come from several keys.