Skip to content

[24.0 backport] Stop slowing bash init by caching plugins path slowly - #4517

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

[24.0 backport] Stop slowing bash init by caching plugins path slowly#4517
thaJeztah merged 1 commit into
docker:24.0from
thaJeztah:24.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 #4517 (dc45bcc) into 24.0 (724548b) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@ Coverage Diff @@## 24.0 #4517 +/- ##
=======================================
Coverage 59.24% 59.24% =======================================
Files 288 288 Lines 24813 24813 =======================================
Hits 14701 14701 Misses 9230 9230 Partials 882 882 

@thaJeztah
thaJeztah merged commit 98ffe42 into docker:24.0Aug 23, 2023
@thaJeztah
thaJeztah deleted the 24.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