-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Closed
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamCoreCLI core infrastructureCLI core infrastructureOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.feature-request
Milestone
Description
Description
Original issue: #9157
CLI's autocompletion is not as fast as other tools, I create this issue to track the progress.
If you find any command's completion is slow, please report it here and attach the output of {your_command} --debug and az -v.
TODO
- {Core} Disable aladdin recommendation in autocomplete mode #25145
- {Core} Improve autocomplete performance by preventing loading all modules #24765
- Improve embedded python speed #25106
- Improve module init speed such as acs, network
- Improve aaz module logic, it does not need to import lots of packages when read params.
- Improve speed of
az s<tab>. Don't need to load all modules, read fromcommandindex.json
Result
Here is the data after applying disable aladdin in 2.45 and enhance module loading in 2.49:
| az account | az storage | az keyvault | az vm | az aks | |
|---|---|---|---|---|---|
| Before (s) | 0.646 | 0.720 | 0.695 | 0.730 | 0.696 |
| Disable aladdin (s) | 0.337 | 0.426 | 0.352 | 0.552 | 0.597 |
| Enhance loading (s) | 0.268 | 0.340 | 0.285 | 0.532 | 0.503 |
| Percentage (%) | 41.5 | 47.2 | 41.0 | 72.9 | 72.3 |
| az account s | az storage s | az keyvault s | az vm s | az aks s | |
|---|---|---|---|---|---|
| Before (s) | 2.553 | 2.483 | 2.450 | 2.541 | 2.519 |
| Disable aladdin (s) | 2.364 | 2.353 | 2.398 | 2.355 | 2.376 |
| Enhance loading (s) | 0.269 | 0.301 | 0.282 | 0.422 | 0.280 |
| Percentage (%) | 10.5 | 12.1 | 11.5 | 16.6 | 11.1 |
Metadata
Metadata
Assignees
Labels
Azure CLI TeamThe command of the issue is owned by Azure CLI teamThe command of the issue is owned by Azure CLI teamCoreCLI core infrastructureCLI core infrastructureOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.This label is used to track how many GitHub issues we have resolved for OKR purpose.feature-request