Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Optimized way to transfer from String to StringBuilder
Message
From
05/02/2014 16:56:35
 
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01593079
Message ID:
01593355
Views:
29
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform