FWIW Pangram says it's 100% AI. As a lot of us become 100% AI coders, I'd encourage you and everyone else to forswear the same tools when you want other humans to read what you write.
even if we consider that "average" commit invalidates only a small portion of cache, it is still huge difference between 6s and 1s when you run the analyser in your editor
not even to say that "average" is not something to strive for
CI runs PHPstan cold. Yes you can jump through additional hoops to get your CI to store the PHPStan cache in the CI's own cache, but there's plenty who have been burned by CI caching enough to just run everything from scratch now.
I've never been burned by phpstan's cache, just by CI caching in general, and by that I mean the well-shaken burlap bag stuffed with angry cats known as GitHub Actions. PHPstan actually does a bang-up job at maintaining its cache even when I switch back and forth between branches with thousands of changes on them.
26 comments
We love to read a fully-AI-generated article don't we.
Weirdly enough, this one didn't sound bad to me, and I'm usually very picky about that.
I mean, without even reading past the headings, "the run you actually wait for" is an obvious tell right out of the gate.
Thanks! Did put quite some time in it. But its fair that I could've wrote more of it by hand from scratch.
It's AI-assisted, but I guess I just write like an AI myself as well
FWIW Pangram says it's 100% AI. As a lot of us become 100% AI coders, I'd encourage you and everyone else to forswear the same tools when you want other humans to read what you write.
even if we consider that "average" commit invalidates only a small portion of cache, it is still huge difference between 6s and 1s when you run the analyser in your editor
not even to say that "average" is not something to strive for
True, that's why we're still working on making PHPStan faster, especially the boot time and cached runs. On 2.3.1 its already within 500ms of Mago
Well said. I still do not run phpstan in phpstorm, but I do run mago.
CI runs PHPstan cold. Yes you can jump through additional hoops to get your CI to store the PHPStan cache in the CI's own cache, but there's plenty who have been burned by CI caching enough to just run everything from scratch now.
Can you tell me about those burns? With the setup in https://phpstan.org/user-guide/result-cache#setup-in-continuous-integration it should just work well. Let me know if you still experience any issues, would love to dive into it!
I've never been burned by phpstan's cache, just by CI caching in general, and by that I mean the well-shaken burlap bag stuffed with angry cats known as GitHub Actions. PHPstan actually does a bang-up job at maintaining its cache even when I switch back and forth between branches with thousands of changes on them.