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 'nullable disabled' semantic model when computing FAR results #73078

Merged
merged 5 commits into from
Apr 18, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Apr 18, 2024

Traces show upwards of 15% of our time in nullability analysis for these features:

image

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner April 18, 2024 02:04
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 18, 2024

public readonly Document Document;
public readonly SemanticModel SemanticModel;
public readonly SyntaxNode Root;
Copy link
Member Author

Choose a reason for hiding this comment

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

had this hold onto Doc/SemanticModel/Root to ease up on hte number of arguments i'm passing around later.

FindReferenceCache cache,
HashSet<string>? globalAliases)
{
private static readonly HashSet<string> s_empty = [];

public readonly Document Document = document;
public readonly SemanticModel SemanticModel = semanticModel;
public readonly SyntaxNode Root = root;
Copy link
Member Author

Choose a reason for hiding this comment

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

instead of individual fields, this is obtainable from the cache.

git push
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 merged commit 1401f9b into dotnet:main Apr 18, 2024
25 checks passed
@CyrusNajmabadi CyrusNajmabadi deleted the farNullable branch April 18, 2024 07:52
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Apr 18, 2024
@dibarbet dibarbet modified the milestones: Next, 17.11 P1 Apr 29, 2024
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.

None yet

3 participants