DockerCLI/vendor
CrazyMax 62f2358b99
improve plugins discovery performance
We are currently loading plugin commands stubs for every
command invocation to add support for Cobra v2 completion.
This cause a significant performance hit if there is a
lot of plugins in the user space (7 atm in Docker Desktop):

`docker --version` takes in current 23.0.1 ~93ms

Instead of removing completion for plugins to fix the
regression, we can slightly improve plugins discovery by
spawning a goroutine for each iteration in the loop when
listing plugins:

`docker --version` now takes ~38ms

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
2023-03-28 06:16:55 +02:00
..
github.com vendor: github.com/moby/buildkit v0.11.4 2023-03-15 01:42:09 +01:00
go.etcd.io/etcd/raft/v3 vendor: github.com/docker/swarmkit 616e8db4c3b0 2022-03-16 15:39:52 +01:00
golang.org/x improve plugins discovery performance 2023-03-28 06:16:55 +02:00
google.golang.org vendor: google.golang.org/grpc v1.50.1 2023-03-15 01:42:09 +01:00
gopkg.in/yaml.v2 vendor dependencies with go1.17 2022-03-26 19:48:14 +01:00
gotest.tools/v3 vendor: gotest.tools/v3 v3.4.0 2022-11-05 23:25:29 +01:00
modules.txt improve plugins discovery performance 2023-03-28 06:16:55 +02:00