You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR phpstan/phpstan-src#1830 looked promising, it improved the performance on 1.8.x, but after rebasing on 1.9.x, it's slow again.
This PR phpstan/phpstan-src#2077 (basically a revert of phpstan/phpstan-src#1741) helps to solve this problem by dumbing down huge constant arrays (making types less precise) at the cost of new false positives because of the lost precision.
just checked on this again. My Test case (this one: #8504 (comment)) went down for me this morning from 83.43s under 1.8.7 to 0.23s with 1.9.11. This is basically as good as it was prior to 1.8.7.
Activity
ondrejmirtes commentedon Dec 11, 2022
Another example is https://github.com/phpstan/phpstan-src/blob/98c66f30dea8bbb075e327cb5c415427000446e8/tests/PHPStan/Analyser/data/bug-8146a.php
ondrejmirtes commentedon Dec 11, 2022
The current result is that on 1.9.2, the sample project takes 2m34s to analyse, with 1.9.x-dev, it takes 47s! /cc @staabm
staabm commentedon Dec 11, 2022
ahhh I love it. still too slow, but way better then before :)
ondrejmirtes commentedon Dec 20, 2022
Should be better now after phpstan/phpstan-src#2116 and phpstan/phpstan-src#2077 :)
Still need to investigate why #8004 fails on return.
bcremer commentedon Dec 21, 2022
Can confirm a reduction from 8 to 6 minutes for a bigger Laminas MVC application 🥳
SaschaHowe commentedon Jan 13, 2023
Hey,
just checked on this again. My Test case (this one: #8504 (comment)) went down for me this morning from 83.43s under 1.8.7 to 0.23s with 1.9.11. This is basically as good as it was prior to 1.8.7.
Great work and thank you so much 👍
Greetings,
Sascha
github-actions commentedon Feb 14, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.