Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 29, 2025

degrade analysis precision to a callable type

closes phpstan/phpstan#13933


before this PR

php bin/phpstan analyze ../phpstan-performance-issue-reproduction/src/index_bad.php --debug -vvv 

Elapsed time: 1.44 seconds
Used memory: 82.5 MB

after this PR

php bin/phpstan analyze ../phpstan-performance-issue-reproduction/src/index_bad.php --debug -vvv 

Elapsed time: 0.67 seconds
Used memory: 70 MB

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.

File analysis/performance issue when file defines a global list of closures.

1 participant