Skip to content

genie_script_checker: performance #5210

@Tom-Willemsen

Description

@Tom-Willemsen

As a MARI and IMAT instrument scientist I would like the script checking process to be faster. It used to be "nearly instantaneous" and it now takes "several seconds".

Currently we clear the pylint cache before each invocation of the linter so that we pick up any new changes to instrument scripts. We could potentially check whether instrument scripts have changed and only clear the cache if so.

Acceptance criteria:

  • Pylint cache is only cleared if the scripts in inst change
  • Message is displayed if the cache is cleared
  • Time of scripts should be reassessed if a call to g.load_script(...) takes more than 1 second on an instrument-like machine (e.g. DEMO) with representative instrument scripts defined a new ticket is created

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions