-
Notifications
You must be signed in to change notification settings - Fork 2.1k
improve plugins listing performance #4151
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
We can slightly improve plugins listing by spawning a goroutine for each iteration. Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
13070fa to
89583b9
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #4151 +/- ##
=======================================
Coverage 59.03% 59.03%
=======================================
Files 287 287
Lines 24767 24778 +11
=======================================
+ Hits 14620 14627 +7
- Misses 9264 9267 +3
- Partials 883 884 +1 |
| return p, nil | ||
| } | ||
| if cmd.HasAlias(p.Name) { | ||
| p.Err = NewPluginError("plugin %q duplicates an alias of builtin command %q", p.Name, cmd.Name()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not related to this PR, but it looks like the only reason NewPluginError() is exported, is for it to be used in a test in docker info;
cli/cli/command/system/info_test.go
Line 224 in a0756c3
| Err: pluginmanager.NewPluginError("something wrong"), |
🤔
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
|
@cpuguy83 @laurazard ptal 🤗 |
follow-up #4147 (comment)
- What I did
We can slightly improve plugins listing by spawning a goroutine for each iteration.
- How I did it
- How to verify it
Also run this repro.
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)