Skip to content

Conversation

@staabm
Copy link
Contributor

@staabm staabm commented Dec 21, 2022

when analyzing tcpdf.php most of the time is spend in FindFirst

blackfire run --ignore-exit-status php ../phpstan-src/bin/phpstan --debug -vvv analyze tcpdf.php

grafik

speedup:

grafik

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only if the variable name is string

Copy link
Contributor Author

@staabm staabm Dec 21, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch. fixed and re-measured. same characteristics.. seems most variables don't reference other variables :)

@ondrejmirtes ondrejmirtes merged commit 3408a97 into phpstan:1.9.x Dec 21, 2022
@ondrejmirtes
Copy link
Member

Thank you!

@staabm staabm deleted the fast-invalidate branch December 21, 2022 21:50
@williamdes
Copy link

Thank you @staabm!

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.

3 participants