Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Is there a way to check if reader has multiple results
Message
From
02/08/2013 06:37:04
 
 
To
02/08/2013 04:51:54
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01579688
Message ID:
01579730
Views:
39
>>I'd insert "in a loop" after strings, as they did some optimizatons for concatenating in a line and probably in directly following lines.
>
>As to 'and probably in directly following lines' I don't think so

I've seen lines like
var stringres;
stringres = str1 + str2 + str3;
being described as special case where string concatenation is optimised.
I'd expect
var stringres;
stringres = "";
stringres = stringres + str1;
stringres = stringres + str2;
stringres = stringres + str3;
to be rewritten to form 1 by an optimizing compiler as such code can be found - if they can inline whole functions, inlining concats should be easy
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform