by moving import statements in functions.
Related to T2575.
Differential D3914 Authored by douardda on Sep 10 2020, 4:16 PM.
Details
Summary by moving import statements in functions. Related to T2575.
Diff Detail
Event TimelineHerald added a reviewer: Reviewers. · View Herald TranscriptSep 10 2020, 4:16 PM2020-09-10 16:16:54 (UTC+2) Comment Actions Build is green Patch application report for D3914 (id=13773)Rebasing onto d1ce9b0912... First, rewinding head to replay your work on top of it... Applying: cli: speedup the `swh` cli command startup time Changes applied before testcommit 675b6a09e3b2f8d874738679783c975c922ccf2a Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 09:30:49 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions. Related to T2575. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/47/ for more details. Harbormaster completed remote builds in B15000: Diff 13773.Sep 10 2020, 4:19 PM2020-09-10 16:19:28 (UTC+2) This revision is now accepted and ready to land.Sep 10 2020, 4:42 PM2020-09-10 16:42:54 (UTC+2) Comment Actions Build is green Patch application report for D3914 (id=13798)Rebasing onto d1ce9b0912... Current branch diff-target is up to date. Changes applied before testcommit a00f151462fec3c2f901b147adc44294efdb69ba Author: David Douard <david.douard@sdfa3.org> Date: Thu Sep 10 09:30:49 2020 +0200 cli: speedup the `swh` cli command startup time by moving import statements in functions. Related to T2575. See https://jenkins.softwareheritage.org/job/DLS/job/tests-on-diff/48/ for more details. Harbormaster completed remote builds in B15024: Diff 13798.Sep 10 2020, 5:18 PM2020-09-10 17:18:45 (UTC+2) Closed by commit rDLSa00f151462fe: cli: speedup the `swh` cli command startup time (authored by douardda). · Explain WhySep 10 2020, 5:24 PM2020-09-10 17:24:43 (UTC+2) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 13773 swh/lister/cli.py |
Wondering whether those indexes (and the one before marked as -- ?) were not
installed in the first place to ease some introspection done independently from
the production (with the guest user a long time ago)...
Which finally made it through here so we got no more discrepancy between code
and production... (going the wrong way though... that is, it should have been
the other way around, dropping the unused indexes instead of adding in the
code...)