Skip to content

Don't allocate fallback name in XamlNamespace.GetXamlType unless it's needed#6270

Merged
dipeshmsft merged 1 commit intodotnet:mainfrom
stephentoub:avoidfallbackstring
May 5, 2022
Merged

Don't allocate fallback name in XamlNamespace.GetXamlType unless it's needed#6270
dipeshmsft merged 1 commit intodotnet:mainfrom
stephentoub:avoidfallbackstring

Conversation

@stephentoub
Copy link
Member

Description

XamlNamespace.GetXamlType is always concatenating a string together, but that string is only used on a fallback path. So only create it on the fallback path.

Customer Impact

Unnecessary string allocation.

Regression

No

Testing

CI

Risk

Minimal

@stephentoub stephentoub requested a review from a team as a code owner March 17, 2022 15:44
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Mar 17, 2022
@ghost ghost requested review from SamBent, dipeshmsft and singhashish-wpf March 17, 2022 15:48
@stephentoub stephentoub force-pushed the avoidfallbackstring branch 2 times, most recently from 50611c5 to 431fb5e Compare March 17, 2022 16:10
Copy link
Member

@lindexi lindexi left a comment

Choose a reason for hiding this comment

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

Thank you.

@dipeshmsft dipeshmsft self-assigned this Apr 1, 2022
@ghost ghost assigned stephentoub May 4, 2022
@dipeshmsft dipeshmsft merged commit f91d779 into dotnet:main May 5, 2022
@ghost ghost locked as resolved and limited conversation to collaborators Jun 8, 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