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

Replace Dictionary with HashSet #7486

Merged

Conversation

ThomasGoulet73
Copy link
Contributor

@ThomasGoulet73 ThomasGoulet73 commented Feb 1, 2023

Follow up to #4177

Description

I found more places where we used a Dictionary without using the value just to filter out duplicates.

See #4177 for benchmarks.

Customer Impact

Better performance.

Regression

No.

Testing

Local build + CI.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@ThomasGoulet73 ThomasGoulet73 requested a review from a team as a code owner February 1, 2023 05:05
@ghost ghost assigned ThomasGoulet73 Feb 1, 2023
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Feb 1, 2023
@ghost ghost requested review from dipeshmsft and singhashish-wpf February 1, 2023 05:05
@ghost ghost added the Community Contribution A label for all community Contributions label Feb 1, 2023
@ThomasGoulet73 ThomasGoulet73 added the Performance Performance related issue label Feb 1, 2023
Copy link
Contributor

@miloush miloush left a comment

Choose a reason for hiding this comment

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

LGTM (still a good sanity check to make sure the affected codepath runs as expected)

@dipeshmsft dipeshmsft self-assigned this Feb 2, 2023
@dipeshmsft
Copy link
Member

LGTM, labeling it for test pass.

@dipeshmsft dipeshmsft merged commit c6584ef into dotnet:main Mar 20, 2023
@ThomasGoulet73 ThomasGoulet73 deleted the replace-dictionary-with-hashset branch March 21, 2023 02:09
@ghost ghost locked as resolved and limited conversation to collaborators Apr 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Community Contribution A label for all community Contributions Performance Performance related issue PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants