Skip to content

Swap Dictionary<K, V> with HashSet<XamlMember>, avoid double lookup#10750

Open
h3xds1nz wants to merge 1 commit intodotnet:mainfrom
h3xds1nz:use-hashset-xaml
Open

Swap Dictionary<K, V> with HashSet<XamlMember>, avoid double lookup#10750
h3xds1nz wants to merge 1 commit intodotnet:mainfrom
h3xds1nz:use-hashset-xaml

Conversation

@h3xds1nz
Copy link
Copy Markdown
Member

@h3xds1nz h3xds1nz commented Apr 9, 2025

Description

Replaces XamlPropertySet which is just a wrapped Dictionary<XamlMember, bool> with HashSet<XamlMember> for improved performance and decreased allocations. The conditions under which this was written do no longer apply.

Also avoids double lookup on each addition.

Customer Impact

Improved performance, decreased allocations.

Regression

No.

Testing

Local build.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners April 9, 2025 21:04
@dotnet-policy-service dotnet-policy-service Bot added PR metadata: Label to tag PRs, to facilitate with triage Community Contribution A label for all community Contributions labels Apr 9, 2025
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 9, 2025

Codecov Report

❌ Patch coverage is 0% with 6 lines in your changes missing coverage. Please review.
✅ Project coverage is 11.20973%. Comparing base (72af9a5) to head (37491a8).
⚠️ Report is 264 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #10750         +/-   ##
===================================================
- Coverage   11.25778%   11.20973%   -0.04805%     
===================================================
  Files           3315        3315                 
  Lines         665229      665217         -12     
  Branches       74668       74667          -1     
===================================================
- Hits           74890       74569        -321     
- Misses        589035      589350        +315     
+ Partials        1304        1298          -6     
Flag Coverage Δ
Debug 11.20973% <0.00000%> (-0.04805%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Community Contribution A label for all community Contributions PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant