Skip to content

Conversation

h3xds1nz
Copy link
Member

@h3xds1nz h3xds1nz commented Jan 31, 2025

Description

Builds on top of #9739 and allows a few more uses of ReadOnlySpan<char> where often we don't need to materialize the output to a string object, this time in the ClrNamespaceUriParser. Keeping it a small, easy to review step like #9940 that allows to save a few allocations on common paths without any substantial changes and can be built upon further.

Not really including a benchmark as its either 0 bytes allocated or the same amount when both strings need to be materialized.

Customer Impact

Increased performance, decreased allocations.

Regression

No.

Testing

Local build, unit tests.

Risk

Low.

Microsoft Reviewers: Open in CodeFlow

@h3xds1nz h3xds1nz requested review from a team as code owners January 31, 2025 18:20
@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 Jan 31, 2025
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