Page MenuHomeSoftware Heritage

cli: speedup the `swh` cli command startup time
ClosedPublic

Authored by douardda on Thu, Sep 10, 4:11 PM.

Details

Summary

by moving import statements in functions. Also move the definition
of StepOption in swh.graph.cli since it's purely a click dedicated
class.

Related to T2575.

Diff Detail

Repository
rDGRPH Graph service
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

douardda created this revision.Thu, Sep 10, 4:11 PM

Build is green

Patch application report for D3910 (id=13769)

Rebasing onto 8c937da207...

Current branch diff-target is up to date.
Changes applied before test
commit 4a643fcce445cc5efc3d1442092578e962363498
Author: David Douard <david.douard@sdfa3.org>
Date:   Thu Sep 10 10:56:11 2020 +0200

    cli: speedup the `swh` cli command startup time
    
    by moving import statements in functions. Also move the definition
    of StepOption in swh.graph.cli since it's purely a click dedicated
    class.
    
    Related to T2575.

See https://jenkins.softwareheritage.org/job/DGRPH/job/tests-on-diff/25/ for more details.

vlorentz accepted this revision.Thu, Sep 10, 4:42 PM
This revision is now accepted and ready to land.Thu, Sep 10, 4:42 PM
This revision was automatically updated to reflect the committed changes.