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

Prototype: using php-parser NodeVisitor insteadof custom analysing methods #211

Merged
merged 11 commits into from
Feb 22, 2019

Conversation

smoench
Copy link
Contributor

@smoench smoench commented Feb 11, 2019

This PR would improve overall performance and would have a better structure for caching. The performance boost would be about ~65% https://blackfire.io/profiles/compare/af3990b3-a28d-437a-8d92-8ac28e9b8f3d/graph. For the comparison I used the provided deptrac file with lastest symfony master.

Following must be refactored:

  • ast/emitted dependencies
  • ast inherit dependencies
  • method collector
  • refactor caching mechanism

@smoench
Copy link
Contributor Author

smoench commented Feb 12, 2019

Updated comparison with latest changes https://blackfire.io/profiles/compare/5f7f03ee-8041-4cdc-8ac9-72a1376f4173/graph

Is there a practical example for the method collector?

@smoench smoench changed the title [WIP] Prototype: using php-parser NodeVisitor insteadof custom analysing methods Prototype: using php-parser NodeVisitor insteadof custom analysing methods Feb 21, 2019
@smoench smoench force-pushed the php-parser-node-visitor branch 2 times, most recently from 2fb65e2 to 3097905 Compare February 22, 2019 08:46
@DavidBadura DavidBadura merged commit 6a733cc into master Feb 22, 2019
@DavidBadura DavidBadura deleted the php-parser-node-visitor branch February 22, 2019 14:16
@smoench smoench added this to the 0.5 milestone Feb 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants