Optimize the generic string.Join for length 1 collections (#6463)
authorJames Ko <jamesqko@gmail.com>
Wed, 27 Jul 2016 17:00:18 +0000 (13:00 -0400)
committerJan Kotas <jkotas@microsoft.com>
Wed, 27 Jul 2016 17:00:18 +0000 (10:00 -0700)
commitdcd9aaeef6d22ad83f26993b68dfab365934c896
treebae8f3167a16f2b920d1977772da6f5938e11630
parentcfa36dd440764ff9e584baf76d23d24acdccbea7
Optimize the generic string.Join for length 1 collections (#6463)

* Optimize the generic string.Join for length 1 collections
* Keep the call order consistent: MoveNext-Current-ToString
* Convert to do..while loop to reduce code duplication
src/mscorlib/src/System/String.cs