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

Improve performance of expensive operation #74247

Merged
merged 3 commits into from
Jul 2, 2024

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented Jul 2, 2024

Reported by dave kean as being super expensive. We walk the entire soluiotn, creating all the red project nodes, just to determine if we have a single C#/VB project. But we already have that info, so just use it directly.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner July 2, 2024 20:34
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Jul 2, 2024
@CyrusNajmabadi CyrusNajmabadi requested review from tmat and ToddGrun July 2, 2024 20:37
@@ -48,7 +48,8 @@ internal sealed partial class SolutionState
public ImmutableDictionary<string, StructuredAnalyzerConfigOptions> FallbackAnalyzerOptions { get; } = ImmutableDictionary<string, StructuredAnalyzerConfigOptions>.Empty;

/// <summary>
/// Number of projects in the solution of the given language.
/// Number of projects in the solution of the given language. The value is guaranteed to always be greater than zero.
/// If the project count does ever hit then there simply is no key/value pair for that language in this map.
Copy link
Contributor

Choose a reason for hiding this comment

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

ever hit

does ever hit zero?

@CyrusNajmabadi CyrusNajmabadi requested a review from ToddGrun July 2, 2024 21:02
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 July 2, 2024 21:06
@CyrusNajmabadi CyrusNajmabadi merged commit c6c5663 into dotnet:main Jul 2, 2024
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Jul 2, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the optionPerf branch July 24, 2024 16:16
@RikkiGibson RikkiGibson modified the milestones: Next, 17.12 P1 Jul 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.

3 participants