Skip to content

Conversation

@stephentoub
Copy link
Member

Description

This is boxing the integer keys.
image

Customer Impact

Less allocation, less GC, less pause time.

Regression

No

Testing

Just CI

Risk

Minimal. Just switches a Hashtable to a Dictionary. The one thing to typically watch out for in such a change is the thread-safety guarantee differences between the two, but that's not relevant here based on the usage.

Dictionary is also faster than Hashmap.
@stephentoub stephentoub requested a review from a team as a code owner June 27, 2021 00:16
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 27, 2021
@ghost ghost requested review from SamBent, fabiant3 and ryalanms June 27, 2021 00:16
@ryalanms ryalanms merged commit dac3c0c into dotnet:main Jul 27, 2021
@ghost ghost locked as resolved and limited conversation to collaborators Apr 8, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

🚧 work in progress PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants