ClusterLabs / ClusterLabs/crmsh
slow load for configure
- Dominant language
- Python
- Stars
- 143
- Forks
- 96
- Avg merge
- 2d 6h
- Merged PRs (30d)
- 16
Description
Every crm cf invocation takes almost two seconds:
```
root@alpaca1:~# time crm cf <> /dev/null
real 0m1.709s
user 0m0.310s
sys 0m0.175s
```
It turns out that most of the time is used by `crm_resource --list-standards` (for whatever reason is that one taking so long, but that's another matter).
This is cached for the completion, but the completion is not used for one-shot commands such as `crm cf show blah`.
Contributor guide
Research direction
Start at the crm cf command path and inspect how completion caches the crm_resource --list-standards result. Compare that path with one-shot commands such as crm cf show blah. Done means those commands no longer pay the repeated slow lookup cost while completion still works.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, performance
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100