Posted By: travis | Jul 27th, 2004 @ 9:58 AM
page 2 of 2
Comments: 29 | Views: 121904
stevo_
stevo_
Human after all
I mean't, don't post uninspired boring links to your own blog posts, especially when the post isn't very good.. clearly the massive views of this thread (for obvious reasons) are attractive.. hmmmm views == readers of my blog.. ka ching! $$$
evildictaitor
evildictaitor
if( !succeed( try() ) ) { while(true) try(); }
You remember reading wrong - stringbuilders have no idea how big they'll need to be by the end, and so they have to occassionally expand themselves (an expensive operation) when they find out they have run out of space. String.Concat() on the other hand can work out exactly how long the result will be (it's the sum of all of the individual strings' lengths) and so String.Concat() is faster.

For large strings or large numbers of concats, String.Concat becomes even more efficient.

As a rule of thumb - for concatenating strings, use String.Concat. For building strings, use a StringBuilder.
foreachdev
foreachdev
Twitter: @foreachdev

Not sure what your talking about. None of my replys include a link to any of my blog posts.

Yes my blog is connected to my Channel 9 profile. But anyone who takes half a second to do this also has the option.

I make no money off my blog. Its on a public service.

I am not sure if you get some form of theraputic benifit on being a tool but really your flaming has no basis. If it made you feel less depressed don't let me get in the way of whatever therapy you and your shrink have worked out.

stevo_
stevo_
Human after all
Fella, you quoted me.. my initial response, and counter clarification response (due to you responding TO me) was aimed at the poster I originally quoted.

Boom, your high horse just got executed.

You should use Stopwatch to measure small time increments. It has a very high resolution and low overhead.

page 2 of 2
Comments: 29 | Views: 121904
Microsoft Communities