Skip to content

Remove a char[] allocation from HttpUtility#32298

Merged
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:utf16validalloc
Feb 14, 2020
Merged

Remove a char[] allocation from HttpUtility#32298
stephentoub merged 1 commit intodotnet:masterfrom
stephentoub:utf16validalloc

Conversation

@stephentoub
Copy link
Member

This is just wrapping the existing code in a string.Create to avoid the extra char[]. But presumably we already have other code that does the same thing somewhere, @GrabYourPitchforks? Maybe it could be simplified / deleted subsequently.

@GrabYourPitchforks
Copy link
Member

Thanks for finding this!

@stephentoub stephentoub merged commit 7edf03d into dotnet:master Feb 14, 2020
@stephentoub stephentoub deleted the utf16validalloc branch February 14, 2020 18:21
@karelz karelz added this to the 5.0.0 milestone Aug 18, 2020
@ghost ghost locked as resolved and limited conversation to collaborators Dec 10, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants