Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.

DateTimeFormat: Avoid intermediate char[] allocation - #1710

Merged
jkotas merged 1 commit into
dotnet:masterfrom
justinvp:datetimeformat_char
Aug 23, 2016
Merged

jkotas merged 1 commit into
dotnet:masterfrom
justinvp:datetimeformat_char

Conversation

@justinvp

Copy link
Copy Markdown
Contributor

Port of dotnet/coreclr#6863


An unnecessary intermediate char[] allocation can be avoided by calling new string(c, 1) instead of new string(new char[] { c }).

cc: @jkotas

An unnecessary intermediate char[] allocation can be avoided by calling
`new string(c, 1)` instead of `new string(new char[] { c })`.
@jkotas

jkotas commented Aug 23, 2016

Copy link
Copy Markdown
Member

@dotnet-bot test Windows_NT Debug please

@jkotas

jkotas commented Aug 23, 2016

Copy link
Copy Markdown
Member

@dotnet-bot test Windows_NT Release please

@jkotas
jkotas merged commit 66a8874 into dotnet:master Aug 23, 2016
@justinvp
justinvp deleted the datetimeformat_char branch August 24, 2016 00:38
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.

3 participants