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 discarded use site info for LookupSymbols scenario #67935

Closed
wants to merge 2 commits into from

Conversation

Youssef1313
Copy link
Member

@Youssef1313 Youssef1313 commented Apr 23, 2023

Assuming this change can be accepted, would it help with #67926 ? I'd like someone to confirm. cc @AlekseyTs @sharwell @CyrusNajmabadi

@ghost ghost added the Community The pull request was submitted by a contributor who is not a Microsoft employee. label Apr 23, 2023
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 23, 2023
Comment on lines +43 to +45
var useSiteInfo = discardUseSiteInfo
? CompoundUseSiteInfo<AssemblySymbol>.Discarded
: CompoundUseSiteInfo<AssemblySymbol>.DiscardedDependencies;
Copy link
Member Author

Choose a reason for hiding this comment

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

This may have a behavioral change, but let's see if it will be captured by tests and check whether it's an important scenario for LookupSymbols or not.

@Youssef1313 Youssef1313 marked this pull request as ready for review April 23, 2023 13:58
@Youssef1313 Youssef1313 requested a review from a team as a code owner April 23, 2023 13:58
@@ -55,7 +57,7 @@ public static MethodSymbol Create(MethodSymbol method, TypeSymbol receiverType,
return null;
}

if (useSiteInfo.Diagnostics != null)
if (!discardUseSiteInfo && useSiteInfo.Diagnostics != null)
Copy link
Contributor

Choose a reason for hiding this comment

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

if (!discardUseSiteInfo && useSiteInfo.Diagnostics != null)

This looks like a wrong thing to do.

Copy link
Contributor

@AlekseyTs AlekseyTs left a comment

Choose a reason for hiding this comment

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

Before we start optimizing compiler because IDE is slow, I would like to have an understanding about how many requests IDE performs for the scenario. Compiler code might dominate the profile simply because IDE is constantly asking it to do something.

@Youssef1313 Youssef1313 deleted the perf2 branch April 24, 2023 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee. 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.

2 participants