Skip to content

[parallel] bump default threads from 16 to 32 to keep up with modern technology #6877

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 6 commits into from
May 2, 2025

Conversation

TomasVotruba
Copy link
Member

@TomasVotruba TomasVotruba commented May 2, 2025

No description provided.

@TomasVotruba TomasVotruba changed the title tv picks tv picksa[parallel] bump default threads from 16 to 32 to keep up with modern technology May 2, 2025
@TomasVotruba TomasVotruba changed the title tv picksa[parallel] bump default threads from 16 to 32 to keep up with modern technology [parallel] bump default threads from 16 to 32 to keep up with modern technology May 2, 2025
@@ -190,7 +190,7 @@ final public function enterNode(Node $node): int|Node|null
* Replacing nodes in leaveNode() method avoids infinite recursion
* see"infinite recursion" in https://github.com/nikic/PHP-Parser/blob/master/doc/component/Walking_the_AST.markdown
*/
public function leaveNode(Node $node): array|int|Node|null
final public function leaveNode(Node $node): array|int|Node|null
Copy link
Member

Choose a reason for hiding this comment

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

It seems bc break

Copy link
Member Author

Choose a reason for hiding this comment

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

On purpose, this should have never been allowed.

@samsonasik
Copy link
Member

I will check the rector-downgrade-php unit test error, it possibly due to latest phpstan

@TomasVotruba
Copy link
Member Author

TomasVotruba commented May 2, 2025

I will check the rector-downgrade-php unit test error, it possibly due to latest phpstan

Thanks 👍 PHPStan x.14 now returns string instead of mixed even if native type declaration is missing.

@samsonasik
Copy link
Member

It seems due to this change phpstan/phpstan-src@3854cbc

It seems the only way we can do is just follow it since it not error when set as magic https://3v4l.org/IrE2q#v7.4.33

I will update the fixture.

@samsonasik
Copy link
Member

@samsonasik
Copy link
Member

I restarted the CI, seems green now 👍

@samsonasik
Copy link
Member

@TomasVotruba rebase is needed 👍

@TomasVotruba
Copy link
Member Author

Thanks 👍

@TomasVotruba TomasVotruba merged commit c475fc7 into main May 2, 2025
45 checks passed
@TomasVotruba TomasVotruba deleted the tv-picks branch May 2, 2025 19:39
->withImportNames(removeUnusedImports: true)
->withImportNames()
Copy link
Member

Choose a reason for hiding this comment

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

It seems you were testing speed? I think this can be re-enabled again, it already fast on rector-src, and this also enabled in other rector-* packages rector.php.

Copy link
Member Author

Choose a reason for hiding this comment

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

I thought the removeUnusedImports: true is enabled by default.

I think we should enable it, so default behavior is the one with least work. What do you think?

Copy link
Member

Choose a reason for hiding this comment

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

imo, current optional implementation already correct, it should be optional, as it "remove things" that can possibly there on purpose.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see, I'll restore it here then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants