Skip to content

Improve autocompletion performance #25107

@bebound

Description

@bebound

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

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 teamCoreCLI core infrastructureOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.feature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions