Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove lots of unnecessary string allocations #4766

Merged
merged 2 commits into from
Jul 29, 2021

Conversation

stephentoub
Copy link
Member

Description

There are many places we're allocating temporary strings, e.g. from Substring, where we can now use spans.

Customer Impact

Less allocation/copying.

Regression

No

Testing

Just CI

Risk

Minimal. Changes are all local and can be easily reviewed for correctness.

@stephentoub stephentoub requested a review from a team as a code owner June 28, 2021 20:51
@ghost ghost added the PR metadata: Label to tag PRs, to facilitate with triage label Jun 28, 2021
@ghost ghost requested review from fabiant3, ryalanms and SamBent June 28, 2021 20:51
Low-hanging fruit. Yay, span.
lindexi added a commit to lindexi/lindexi_gd that referenced this pull request Jun 30, 2021
@ryalanms ryalanms merged commit fedab14 into dotnet:main Jul 29, 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
PR metadata: Label to tag PRs, to facilitate with triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants