-
Notifications
You must be signed in to change notification settings - Fork 545
OptimizedDirectorySourceLocator based only on PhpParser
#1290
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
base: 1.9.x
Are you sure you want to change the base?
Conversation
c7190a4 to
a5cc9dd
Compare
|
@kukulich just found this PR. Is it still relevant? Is there a concrete problem beeing solved here (it looks like its a performance improvement)? |
|
I discussed it with @ondrejmirtes directly. I think we tried to get rid of the reqexp in |
|
This PR makes future maintenance of this locator easier but right now has worse performance. I have a plan to address this - we could make PHPStan faster because right now, the same work is done by all child processes which means it's done 8 times during each run. Instead, we could populate some cache in the main process before launching child processes, and those child processes could just read the cached data instead of doing all the work again. |
|
Rebased. |
|
This pull request has been marked as ready for review. |
| * @author Jordi Boggiano <j.boggiano@seld.be> | ||
| * @see https://github.com/composer/composer/pull/10107 | ||
| */ | ||
| class PhpFileCleaner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember seeing blackfire profiles where the PhpFileCleaner logic was on the hot path.
really like seeing this file beeing deleted :)
No description provided.