Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Conversation

@stephentoub
Copy link
Member

Tests covering a few more special cases of String.Concat, including checking for a string.Empty optimization and a mini-stress test that tries to trigger the fallback defensive-copy case in String.Concat.

cc: @jkotas, @ellismg

(This won't pass CI until dotnet/coreclr#4559 is merged, due to the new checks for Assert.Same for the empty string case. That optimization existed for the other string.Concat overloads, but not for the string[] one previously.)

@jkotas
Copy link
Member

jkotas commented Apr 25, 2016

LGTM

@hughbe
Copy link

hughbe commented Apr 25, 2016

LGTM. Sorry for creating the merge conflict ;)

@stephentoub
Copy link
Member Author

Sorry for creating the merge conflict ;)

No problem. I merged your change knowing it would conflict 😄

Tests covering a few more special cases of String.Concat, including checking for a string.Empty optimization and a mini-stress test that tries to trigger the fallback defensive-copy case in String.Concat.
@stephentoub stephentoub merged commit df00879 into dotnet:master Apr 26, 2016
@stephentoub stephentoub deleted the string_tests branch April 26, 2016 17:08
@karelz karelz modified the milestone: 1.0.0-rtm Dec 3, 2016
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants