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

Reduce time spend in HasMatchingScope for SyntaxNode registration #8399

Closed
sebastien-marichal opened this issue Nov 23, 2023 · 1 comment · Fixed by #8396
Closed

Reduce time spend in HasMatchingScope for SyntaxNode registration #8399

sebastien-marichal opened this issue Nov 23, 2023 · 1 comment · Fixed by #8396
Assignees
Labels
Type: Performance It takes too long.
Milestone

Comments

@sebastien-marichal
Copy link
Contributor

The HasMatchingScope check method can be called only once per syntactic rules, today this method is called for each node analyzed by the syntactic rules.

When doing a RegisterNodeAction, do the check before by doing first a RegisterCompilationStartAction.

@martin-strecker-sonarsource
Copy link
Contributor

Related #7411

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Performance It takes too long.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants