Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Errrhhh ..... CSharp or VB
Message
From
25/09/2011 19:45:34
 
 
To
25/09/2011 19:38:14
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
ASP.NET
Category:
Other
Miscellaneous
Thread ID:
01524423
Message ID:
01524677
Views:
66
>>Question: I've always been confused about how the compiler optimizes string concatonation. Should you be using String.Format or String.Concat instead of the way you're doing it? Or will the compiler optimize it?
>
>
>For short strings, as in the demo, i don't think it matters.... but for the most part I use stringbuilder to concat long strings of data.....

AFAIR it is more a question of the no. of strings involved.
Methinks up to 4 operands of type string are better optimized than stringbuffer.
Previous
Reply
Map
View

Click here to load this message in the networking platform