Skip to content

[23.0 backport] Stop slowing bash init by caching plugins path slowly - #4518

Merged
thaJeztah merged 1 commit into
docker:23.0from
thaJeztah:23.0_backport_docker-cli-slows-bash-init
Aug 23, 2023
Merged

[23.0 backport] Stop slowing bash init by caching plugins path slowly#4518
thaJeztah merged 1 commit into
docker:23.0from
thaJeztah:23.0_backport_docker-cli-slows-bash-init

Conversation

@thaJeztah

Copy link
Copy Markdown
Member

Fixes issue #3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during every bash session initialization, regardless if docker completion will be needed or not.

(cherry picked from commit 1da67be)

- What I did

- How I did it

- How to verify it

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

Fixes issue docker#3889 by only loading docker plugins path when needed: if it is fast enough than it shouldn't be a problem to do this on demand; OTOH if it is slow then we shouldn't do this during *every* bash session initialization, regardless if docker completion will be needed or not.
Signed-off-by: Oded Arbel <oded@geek.co.il>
(cherry picked from commit 1da67be)
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

Merging #4518 (8f67e81) into 23.0 (7e32d44) will decrease coverage by 0.01%.
The diff coverage is n/a.

Additional details and impacted files
@@ Coverage Diff @@## 23.0 #4518 +/- ##
==========================================
- Coverage 58.99% 58.98% -0.01% 
==========================================
Files 288 286 -2 Lines 24824 24821 -3 ==========================================
- Hits 14645 14641 -4 
Misses 9298 9298 - Partials 881 882 +1 

@thaJeztah
thaJeztah merged commit 92955ed into docker:23.0Aug 23, 2023
@thaJeztah
thaJeztah deleted the 23.0_backport_docker-cli-slows-bash-init branch August 23, 2023 12:04
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@thaJeztah@codecov-commenter@rumpl@vvoland@guss77