Page MenuHomeSoftware Heritage

Use absolute import
ClosedPublic

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

Details

Summary

cli: speedup the swh cli command startup time

by moving import statements in functions and stop importing
swh.objstorage.factory.* in swh.objstorage.

Warning: this later breaks a few dependencies that had not updated
the way they import get_objstorage.

Related to T2575.

Diff Detail

Repository
rDOBJS Object storage
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:19 PM

Build is green

Patch application report for D3917 (id=13776)

Rebasing onto d36bf1631f...

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

    cli: speedup the `swh` cli command startup time
    
    by moving import statements in functions and stop importing
    swh.objstorage.factory.* in swh.objstorage.
    
    Warning: this later breaks a few dependencies that had not updated
    the way they import get_objstorage.
    
    Related to T2575.

commit f6e9b0149a3513148970bafd985b83534496d3cb
Author: David Douard <david.douard@sdfa3.org>
Date:   Wed Sep 9 18:57:52 2020 +0200

    Use absolute import

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

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