[27.x backport] Optimise docker stats to not require clearing the whole screen#5635
Merged
laurazard merged 1 commit intodocker:27.xfrom Nov 19, 2024
Merged
Conversation
Instead of clearing the whole screen and then writing the new stats, we now write the new stats on top of the old text, and then clear the remaining text. This is a more efficient way to update the stats, as it avoids the flickering that happens when the screen is cleared and rewritten. Signed-off-by: Giedrius Jonikas <giedriusj1@gmail.com> (cherry picked from commit cb2f95c) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Member
Author
|
@laurazard @vvoland backporting this one as this is a follow-up to #5586, which was backported (#5588) |
docker stats to not require clearing the whole screen
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 27.x #5635 +/- ##
==========================================
- Coverage 58.55% 58.54% -0.02%
==========================================
Files 346 346
Lines 29329 29335 +6
==========================================
Hits 17173 17173
- Misses 11178 11184 +6
Partials 978 978
|
vvoland
approved these changes
Nov 19, 2024
Benehiko
approved these changes
Nov 19, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
docker statsto not require clearing the whole screen #5625Instead of clearing the whole screen and then writing the new stats, we now write the new stats on top of the old text, and then clear the remaining text.
This is a more efficient way to update the stats, as it avoids the flickering that happens when the screen is cleared and rewritten.
(cherry picked from commit cb2f95c)
- 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)