Skip to content

[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

Merged
merged 1 commit into from
Jul 8, 2019

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Jul 8, 2019

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.

@nicolas-grekas nicolas-grekas added this to the next milestone Jul 8, 2019
@nicolas-grekas nicolas-grekas changed the title [Console] don't redraw progress bar more that ever 100ms by default [Console] don't redraw progress bar more that every 100ms by default Jul 8, 2019
@nicolas-grekas nicolas-grekas changed the title [Console] don't redraw progress bar more that every 100ms by default [Console] don't redraw progress bar more than every 100ms by default Jul 8, 2019
@fabpot
Copy link
Member

fabpot commented Jul 8, 2019

Thank you @nicolas-grekas.

@fabpot fabpot merged commit df551e9 into symfony:4.4 Jul 8, 2019
fabpot added a commit that referenced this pull request Jul 8, 2019
…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
@nicolas-grekas nicolas-grekas deleted the console-refresh branch July 19, 2019 11:11
@nicolas-grekas nicolas-grekas modified the milestones: next, 4.4 Oct 27, 2019
@@ -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)
Copy link
Contributor

@carusogabriel carusogabriel Nov 8, 2019

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?

Copy link
Member Author

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.

This was referenced Nov 12, 2019
Sign up for free to 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.

4 participants