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

Add regression test for array self-append #3715

Merged
merged 1 commit into from
Dec 9, 2024

Conversation

herndlm
Copy link
Contributor

@herndlm herndlm commented Dec 9, 2024

Closes phpstan/phpstan#6948

This is using the example that @staabm used in that issue as well. If I double the cases it gets just a tiny bit slower, but not much. it seems to be linear instead of exponential now. I can add cases until at some point xdebug starts detecting endless recursions, but that's another issue I guess 😁 so I think the original case of "exponential slowdown" has really been properly fixed.

For the record as already mentioned, this was somewhere massively improved between these commits: a07996a, 1a0099d, 53a1554, 537c12c, c04555b, 4dfbe16

c04555b stood out via git bisect and improved it initially, which surprised me, but reverting it on 1.12.x does not bring the issue back, so the situation is somewhat more complex I suppose and there might be something else later that also fixes or improves this in combination.

@ondrejmirtes
Copy link
Member

Thank you!

@ondrejmirtes ondrejmirtes merged commit 09eab21 into phpstan:1.12.x Dec 9, 2024
129 checks passed
@herndlm herndlm deleted the append-regression branch December 9, 2024 09:50
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