Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Optimized way to transfer from String to StringBuilder
Message
De
05/02/2014 16:56:35
 
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Divers
Thread ID:
01593079
Message ID:
01593355
Vues:
31
>If those are the only two strings you're dealing with in the block before the string is complete and then used, then you don't need a string builder. StringBuilder starts being more efficient around 6-8 concatenations but before that it's not going to matter much.
>
>Unless you're running this code in a loop - don't bother with a string builder.

Yes, it is running in a loop. But, rarely does it relate to a big chunk of text being processed. So, I left it as is for now.

Thanks for the additional information
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform