Skip to content

Avoid Hashtable-related allocations in DataBindEngine - #6501

Merged
dipeshmsft merged 1 commit into
dotnet:mainfrom
stephentoub:valuetableconverteralloc
Aug 12, 2022
Merged

dipeshmsft merged 1 commit into
dotnet:mainfrom
stephentoub:valuetableconverteralloc

Conversation

@stephentoub

@stephentoub stephentoub commented Apr 29, 2022 •

Copy link
Copy Markdown
Member

Description

The _valueConverterTable is a Hashtable that uses a struct-based key. It's boxing every time a lookup is performed or an add is performed.

Customer Impact

Unnecessary allocation

Regression

No

Testing

CI

Risk

Minimal

Microsoft Reviewers: Open in CodeFlow

@stephentoub
stephentoub requested a review from a team as a code owner April 29, 2022 13:01
@ghost ghost assigned stephentoub Apr 29, 2022
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Apr 29, 2022
@ghost
ghost requested review from SamBent, dipeshmsft and singhashish-wpf April 29, 2022 13:01
The _valueConverterTable is a Hashtable that uses a struct-based key.  It's boxing every time a lookup is performed or an add is performed.
@stephentoub
stephentoub force-pushed the valuetableconverteralloc branch from e1618c7 to 334bfb2 Compare May 3, 2022 13:29
@dipeshmsft

Copy link
Copy Markdown
Member

We have taken this PR for the current Community Test Pass. Thanks for the contribution.

@dipeshmsft
dipeshmsft merged commit 5717fc2 into dotnet:main Aug 12, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Sep 11, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

PR metadata: Label to tag PRs, to facilitate with triage

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants