Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(bash-v2): short-circuit descriptionless candidate lists
If the list of candidates has no descriptions, short circuit all the description processing logic, basically just do a `compgen -W` for the whole list and be done with it. We could conceivably do some optimizations like this and more when generating the completions with `--no-descriptions`, but this way the improvements are available also to completions generated with descriptions enabled when they are invoked for completion cases that produce no descriptions.
- Loading branch information