-
Notifications
You must be signed in to change notification settings - Fork 664
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
avoid using pkg_resources for faster command execution #426
Conversation
Signed-off-by: Wataru Ishida <ishida@nel-america.com>
@ishidawataru: Thanks for looking into this issue. Does this change also speed up tab-completion? |
@jleveque Yes it should. Every tab-completion executes the command to complete internally. |
This commit is causing deb build failure:
But if I go to previous commit, no problem seen. Does the commit require new build from scratch including slave build docker?
|
@ishidawataru: This change doesn't appear to speed up bash completion at all. Typing I am currently building from the head of the master branch of sonic-buildimage (currently commit sonic-net/sonic-buildimage@2b01beb), and I am still seeing |
- What I did
speed up command execution by avoiding 'pkg_resources' import.
related issue : #408
- How I did it
Used https://github.com/ninjaaron/fast-entry_points
- How to verify it
- Previous command output (if the output of a command-line utility has changed)
- New command output (if the output of a command-line utility has changed)