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 13:01:30
 
 
À
05/02/2014 12:58:03
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:
01593302
Vues:
21
>>So wouldn't this do the same thing:
lcString = lcString.Replace(lcWord + ".", "[" + lcWord + "].")
>
>Yes, but for very long string, doing so many processes on that string would fit better with a stringbuilder.

Don't think so. The string is only being re-assigned once - I don't think Replace() creates any intermediary strings.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform