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

More classification perf fixes. #73535

Merged
merged 13 commits into from
May 17, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented May 17, 2024

Span change is to address this:

image

Have commented the rest.

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels May 17, 2024
@CyrusNajmabadi CyrusNajmabadi changed the title WIP. More classification perf fixes. May 17, 2024
typeof(IdentifierNameSyntax),
typeof(QualifiedNameSyntax),
typeof(SimpleNameSyntax),
typeof(GenericNameSyntax),
Copy link
Member Author

Choose a reason for hiding this comment

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

no need to check these other 'composed name types'. We only care about X and X<...> (and we only classifiy the 'X' part of each). Every other name type composes into one of these two name types that we actually classify here.

this addresses a lot of callbacks for dotted names that serve no purpose.

];

protected override int? GetRightmostNameArity(SyntaxNode node)
Copy link
Member Author

Choose a reason for hiding this comment

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

unused method.

@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review May 17, 2024 17:20
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 17, 2024 17:20
@CyrusNajmabadi
Copy link
Member Author

@ToddGrun tiny mop up. ONe moer PR coming. Will not be doing obsolete-classification when doing FAR. It is nearly 7% of the scenario:

image

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi CyrusNajmabadi enabled auto-merge May 17, 2024 18:30
@CyrusNajmabadi CyrusNajmabadi merged commit 9c89909 into dotnet:main May 17, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone May 17, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the classificationExt2 branch May 18, 2024 04:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants