avoid using pkg_resources for faster command execution#426
avoid using pkg_resources for faster command execution#426jleveque merged 1 commit intosonic-net:masterfrom
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)