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

use AST edges for modifier accessors #4510

Merged
merged 1 commit into from
Apr 30, 2024
Merged

use AST edges for modifier accessors #4510

merged 1 commit into from
Apr 30, 2024

Conversation

maltek
Copy link
Contributor

@maltek maltek commented Apr 30, 2024

I have a (large) CPG here where the general .out is catastrophically slow: 130k calls to method.isConstructor took 8 minutes on my machine before, compared to 500ms with this change. I haven't dug deeper but I guess part of this is that methods have a LOT of outgoing CONTAINS edges that are irrelevant for modifiers.

I have a (large) CPG here where the general `.out` is catastrophically slow:
130k calls to `method.isConstructor` took 8 minutes on my machine before,
compared to 500ms with this change. I haven't dug deeper but I guess
part of this is that methods have a LOT of outgoing CONTAINS edges that
are irrelevant for modifiers.
@maltek maltek requested a review from mpollmeier April 30, 2024 13:59
@maltek maltek merged commit cd88f5b into master Apr 30, 2024
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the mkraus/modifiers branch April 30, 2024 14:49
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.

2 participants