Skip to content
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

[Console] Improve speed NullOutput #34869

Merged
merged 1 commit into from Dec 26, 2019
Merged

[Console] Improve speed NullOutput #34869

merged 1 commit into from Dec 26, 2019

Conversation

tienvx
Copy link
Contributor

@tienvx tienvx commented Dec 7, 2019

Q A
Branch? master
Bug fix? no
New feature? yes
Deprecations? no
Tickets N/A
License MIT
Doc PR N/A

This PR improve NullOutput so that test cases that used it can be run faster.

@nicolas-grekas
Copy link
Member

Thank you for the PR @tienvx
This should target master, as we don't consider perf improvements as bug fixes (unless they are catastrophic, but that's not the case here)

@tienvx tienvx changed the base branch from 3.4 to master December 8, 2019 01:57
@tienvx
Copy link
Contributor Author

tienvx commented Dec 8, 2019

Thanks! I updated.

One question: will this code be ported to 5.0?

@fancyweb
Copy link
Contributor

fancyweb commented Dec 9, 2019

One question: will this code be ported to 5.0?

No because master = 5.1.

Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add all possible return types to the new classes? (but not to the test cases)

@tienvx
Copy link
Contributor Author

tienvx commented Dec 21, 2019

I updated @nicolas-grekas

@chalasr
Copy link
Member

chalasr commented Dec 26, 2019

Thank you @tienvx.

chalasr added a commit that referenced this pull request Dec 26, 2019
This PR was merged into the 5.1-dev branch.

Discussion
----------

[Console] Improve speed NullOutput

| Q             | A
| ------------- | ---
| Branch?       | master <!-- see below -->
| Bug fix?      | no
| New feature?  | yes <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | N/A <!-- prefix each issue number with "Fix #", if any -->
| License       | MIT
| Doc PR        | N/A <!-- required for new features -->

This PR improve NullOutput so that test cases that used it can be run faster.

Commits
-------

7538743 [Console] Improve speed NullOutput
@chalasr chalasr merged commit 7538743 into symfony:master Dec 26, 2019
@tienvx tienvx deleted the improve-null-output-3.4 branch December 27, 2019 06:39
@nicolas-grekas nicolas-grekas modified the milestones: next, 5.1 May 4, 2020
@ogizanagi ogizanagi mentioned this pull request Aug 17, 2020
fabpot added a commit that referenced this pull request Aug 17, 2020
This PR was merged into the 5.1 branch.

Discussion
----------

Fix tests namespaces

| Q             | A
| ------------- | ---
| Branch?       | 5.1 <!-- see below -->
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | N/A <!-- prefix each issue number with "Fix #", no need to create an issue if none exist, explain below instead -->
| License       | MIT
| Doc PR        | N/A

Fixes namespaces for tests introduced in #34869 & #31466, spotted by travis generating Composer warnings:

```
Deprecation Notice: Class Symfony\Component\Console\Tests\Output\NullOutputFormatterStyleTest located in ./src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterStyleTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/travis/.phpenv/versions/7.4.9/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Symfony\Component\Console\Tests\Output\NullOutputFormatterTest located in ./src/Symfony/Component/Console/Tests/Formatter/NullOutputFormatterTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/travis/.phpenv/versions/7.4.9/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
Deprecation Notice: Class Symfony\Component\Validator\Tests\Validator\ValidationTest located in ./src/Symfony/Component/Validator/Tests/ValidationTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar:///home/travis/.phpenv/versions/7.4.9/bin/composer/src/Composer/Autoload/ClassMapGenerator.php:201
```

Commits
-------

4e68c90 Fix tests namespaces
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.

None yet

9 participants