Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Errrhhh ..... CSharp or VB
Message
De
25/09/2011 19:45:34
 
 
À
25/09/2011 19:38:14
John Baird
Coatesville, Pennsylvanie, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01524423
Message ID:
01524677
Vues:
59
>>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.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform