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

Lower the amount of time FAR spends in classification by 4% #73533

Merged
merged 1 commit into from
May 17, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented May 17, 2024

Removes the cost of concurrent dictionaries here:

image

And lowers total cost from:

image

to:

image

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner May 17, 2024 06:44
@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
Copy link
Member Author

@ToddGrun ptal


Func<Type, ImmutableArray<TExtension>> getExtensions = (Type t1) =>
foreach (var extension in extensions)
Copy link
Contributor

Choose a reason for hiding this comment

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

extensions

I like it. Good observation that allowing it to not handle the subclass could simplify it like this.

The only concern would be the fragility when new types are added that need to be added to SyntaxNodeTypes, but I'm guessing that doesn't happen often anymore.

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:

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