Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto merge of #10365 - itsjohncs:completion-speedup, r=alexcrichton
Improve startup time of bash completion. `cargo list` takes about .15 seconds on my computer which is substantial enough to be the slowest command run when my shell starts according to [sstephenson's bashprof](https://github.com/sstephenson/bashprof). This commit defers running `cargo list` until we need it for the first time. # Testing After starting a new shell (which has loaded cargo's bash completion) type `cargo <TAB><TAB>` and see the output matches the output prior to this change (ie: the commands given by `cargo list`). You should observe a small delay. You should observe no such delay on subsequent attempts within the same session.
- Loading branch information