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

Fix memory leak #1643

Merged
merged 2 commits into from
Jan 7, 2022
Merged

Fix memory leak #1643

merged 2 commits into from
Jan 7, 2022

Conversation

ondrejmirtes
Copy link
Contributor

@ondrejmirtes ondrejmirtes commented Jan 6, 2022

Fixes: rectorphp/rector#6913

So I used git bisect and found the problem. It wasn't about PHPStan 1.3 at all, it was about the parser config.

In my testing (when downgrading vendor/symfony to PHP 7.1 like I do in phpstan-src):

dev-main: 2074 MB
After my first commit: 1282 MB
After my second commit: 1180 MB

@samsonasik
Copy link
Member

Thank you @ondrejmirtes

@TomasVotruba
Copy link
Member

Thank you @ondrejmirtes 🎉 👍

@TomasVotruba
Copy link
Member

The tagged version is out now - Rector 0.12.12 🎉

https://github.com/rectorphp/rector/releases/tag/0.12.12

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