3 ms·
If myArray is large (maybe >10), you should use a StringBuilder. But optimization is tricky and YMMV. Some article about this (for a few strings) http://www.co
by gus_massa 16y ago
If myArray is large (maybe >10), you should use a StringBuilder. But optimization is tricky and YMMV.
Some article about this (for a few strings)
http://www.codinghorror.com/blog/2009/01/the-sad-tragedy-of-micro-optimization-theater.html http://www.codinghorror.com/blog/2009/01/the-sad-tragedy-of-...
And a simmilar question in SO: http://stackoverflow.com/questions/21078/whats-the-best-string-concatenation-method-using-c http://stackoverflow.com/questions/21078/whats-the-best-stri...
I think that StackOverflow (http://stackoverflow.com http://stackoverflow.com) is a better site to get answers to this kind of questions
- silverappy 16y agoThanks gus!