Skip to content

Replace Dictionary with HashSet - #7486

Merged
dipeshmsft merged 2 commits into
dotnet:mainfrom
ThomasGoulet73:replace-dictionary-with-hashset
Mar 20, 2023
Merged

dipeshmsft merged 2 commits into
dotnet:mainfrom
ThomasGoulet73:replace-dictionary-with-hashset

Conversation

@ThomasGoulet73

@ThomasGoulet73 ThomasGoulet73 commented Feb 1, 2023 •

Copy link
Copy Markdown
Contributor

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

@miloush miloush left a comment

Copy link
Copy Markdown
Contributor

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
Copy Markdown
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