pcdshub / lucid

LCLS User Control and Interface Design
https://pcdshub.github.io/lucid/
Other
4 stars 7 forks source link

CLI seems slow #32

Open slacAWallace opened 4 years ago

slacAWallace commented 4 years ago

Just trying a simple lucid -h takes 5s to complete.

lfe-console:~ >source /reg/g/pcds/pyps/conda/dev_conda
lfe-console:~ >lucid -h

Xforwarding is enabled.

hhslepicka commented 4 years ago

@slacAWallace please give a bit more of information so we can properly debug it. What was the commands executed? From which machine? Are you using XForwarding?

klauer commented 4 years ago

Is it the first invocation or every run of lucid?

hhslepicka commented 4 years ago

It seems to not be a first time launch issue...

lfe-console ~ $ source /reg/g/pcds/pyps/conda/dev_conda
(dev) lfe-console ~ $ time lucid -h
usage: lucid [-h] [--version] [--toolbar TOOLBAR]
             [--row_group_key ROW_GROUP_KEY] [--col_group_key COL_GROUP_KEY]
             [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--dark]
             beamline

LUCID - LCLS User Control and Interface Design

positional arguments:
  beamline              Specify the beamline name to compose the home screen.

optional arguments:
  -h, --help            show this help message and exit
  --version             Show LUCID's version number and exit.
  --toolbar TOOLBAR     Path to the YAML file describing the entries for the
                        Quick Access Toolbar.
  --row_group_key ROW_GROUP_KEY
                        The Happi field to use for row grouping.
  --col_group_key COL_GROUP_KEY
                        The Happi field to use for column grouping.
  --log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Configure level of log display
  --dark                Use dark Stylesheet

real    0m6.160s
user    0m2.783s
sys 0m0.684s
(dev)lfe-console ~ $ time lucid -h
usage: lucid [-h] [--version] [--toolbar TOOLBAR]
             [--row_group_key ROW_GROUP_KEY] [--col_group_key COL_GROUP_KEY]
             [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--dark]
             beamline

LUCID - LCLS User Control and Interface Design

positional arguments:
  beamline              Specify the beamline name to compose the home screen.

optional arguments:
  -h, --help            show this help message and exit
  --version             Show LUCID's version number and exit.
  --toolbar TOOLBAR     Path to the YAML file describing the entries for the
                        Quick Access Toolbar.
  --row_group_key ROW_GROUP_KEY
                        The Happi field to use for row grouping.
  --col_group_key COL_GROUP_KEY
                        The Happi field to use for column grouping.
  --log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Configure level of log display
  --dark                Use dark Stylesheet

real    0m4.904s
user    0m2.617s
sys 0m0.560s
(dev)lfe-console ~ $ time lucid -h
usage: lucid [-h] [--version] [--toolbar TOOLBAR]
             [--row_group_key ROW_GROUP_KEY] [--col_group_key COL_GROUP_KEY]
             [--log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}] [--dark]
             beamline

LUCID - LCLS User Control and Interface Design

positional arguments:
  beamline              Specify the beamline name to compose the home screen.

optional arguments:
  -h, --help            show this help message and exit
  --version             Show LUCID's version number and exit.
  --toolbar TOOLBAR     Path to the YAML file describing the entries for the
                        Quick Access Toolbar.
  --row_group_key ROW_GROUP_KEY
                        The Happi field to use for row grouping.
  --col_group_key COL_GROUP_KEY
                        The Happi field to use for column grouping.
  --log_level {DEBUG,INFO,WARNING,ERROR,CRITICAL}
                        Configure level of log display
  --dark                Use dark Stylesheet

real    0m4.985s
user    0m2.619s
sys 0m0.556s