-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Console] don't redraw progress bar more than every 100ms by default #32424
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
Conversation
b37628b
to
a19c068
Compare
a19c068
to
df551e9
Compare
Thank you @nicolas-grekas. |
…0ms by default (nicolas-grekas) This PR was merged into the 4.4 branch. Discussion ---------- [Console] don't redraw progress bar more than every 100ms by default | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? | no (behavior change) | BC breaks? | no (behavior change) | Deprecations? | no | Tests pass? | yes | Fixed tickets | - | License | MIT | Doc PR | - Follow up of #26339 Looks like something we can and should do on 4.4 to me. Commits ------- df551e9 [Console] don't redraw progress bar more than every 100ms by default
@@ -55,7 +55,7 @@ final class ProgressBar | |||
* @param OutputInterface $output An OutputInterface instance | |||
* @param int $max Maximum steps (0 if unknown) | |||
*/ | |||
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0) | |||
public function __construct(OutputInterface $output, int $max = 0, float $minSecondsBetweenRedraws = 0.1) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nicolas-grekas Is the $minSecondsBetweenRedraws
param missing in the phpDoc?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nope: we don't add annotations that don't add value over the signature.
Follow up of #26339
Looks like something we can and should do on 4.4 to me.