<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.3" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>
<channel>
	<title>Comments on: StringBuilder is not always faster - Part 1 of 2</title>
	<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/</link>
	<description>Chinh's not quite random thoughts on software development, .NET, gadgets, and other things.</description>
	<pubDate>Sat, 06 Sep 2008 02:31:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.3</generator>
		<item>
		<title>By: YuzeroK</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-3173</link>
		<dc:creator>YuzeroK</dc:creator>
		<pubDate>Fri, 14 Mar 2008 11:23:56 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-3173</guid>
		<description>Хороший заработок в интернете. Нужно покоментировать страницы, которые вам откроют после регистрации, и за это платят денги и не малые. Я лично зарабатываю около 500$ в месяц. 
 
Регистрируемся тут &lt;a href="http://www.AWSurveys.com/HomeMain.cfm?RefID=yuzerok" rel="nofollow"&gt;awsurveys.com&lt;/a&gt; 
 
1.Нажимите Create A Free Account 
 
UserName - имя пользователя 
Password - пароль 7-15 знаков 
First Name - имя 
Last Name - Фамилия 
Email Address - почтовый ящик 
Далее вводим цифорки-буковки, нажимаем кнопку Create A Free Account 
Вы зарегистрировались! 
 
2.Далее видим таблицу, имеющую такой вид: 
 
The Following Surveys are Available: 
Welcome Survey -- A $6.00 Website Evaluation is Available. 
A $4.00 Website Evaluation is Available. 
A $4.00 Website Evaluation is Available. 
A $4.00 Website Evaluation is Available. 
A $4.00 Website Evaluation is Available. 
A $4.00 Website Evaluation is Available. 
 
3.Щелкаем по одной из ссылок на этой странице, попадаем на следущюю страницу и там щелкаем по надписи "Start Survey Now" 
 
4.Здесь 2 ссылки и 2 поля, в них нужно написать отзыв о сайте на англ языке. 
 
(пример: It is an excellent site, I shall advise its all, this is good job, it's very usefull web-resource и т.п) 
 
5.Щелкае по кнопке внизу "Click to submit ..." Щелкаем по ссылке "Click Here to go Home and..." 
 
6.И так далее по ссылкам и так каждый день. 
 
7.Для вывода денег воспользуйтесь кнопкой "Redeem Money" 
выводятся деньги в системе PayPal (легко переводятся в вебмани) 
могу помочь тем кто не знаком с электронными платежными системами</description>
		<content:encoded><![CDATA[<p>Хороший заработок в интернете. Нужно покоментировать страницы, которые вам откроют после регистрации, и за это платят денги и не малые. Я лично зарабатываю около 500$ в месяц. </p>
<p>Регистрируемся тут <a href="http://www.AWSurveys.com/HomeMain.cfm?RefID=yuzerok" rel="nofollow">awsurveys.com</a> </p>
<p>1.Нажимите Create A Free Account </p>
<p>UserName - имя пользователя<br />
Password - пароль 7-15 знаков<br />
First Name - имя<br />
Last Name - Фамилия<br />
Email Address - почтовый ящик<br />
Далее вводим цифорки-буковки, нажимаем кнопку Create A Free Account<br />
Вы зарегистрировались! </p>
<p>2.Далее видим таблицу, имеющую такой вид: </p>
<p>The Following Surveys are Available:<br />
Welcome Survey &#8212; A $6.00 Website Evaluation is Available.<br />
A $4.00 Website Evaluation is Available.<br />
A $4.00 Website Evaluation is Available.<br />
A $4.00 Website Evaluation is Available.<br />
A $4.00 Website Evaluation is Available.<br />
A $4.00 Website Evaluation is Available. </p>
<p>3.Щелкаем по одной из ссылок на этой странице, попадаем на следущюю страницу и там щелкаем по надписи &#8220;Start Survey Now&#8221; </p>
<p>4.Здесь 2 ссылки и 2 поля, в них нужно написать отзыв о сайте на англ языке. </p>
<p>(пример: It is an excellent site, I shall advise its all, this is good job, it&#8217;s very usefull web-resource и т.п) </p>
<p>5.Щелкае по кнопке внизу &#8220;Click to submit &#8230;&#8221; Щелкаем по ссылке &#8220;Click Here to go Home and&#8230;&#8221; </p>
<p>6.И так далее по ссылкам и так каждый день. </p>
<p>7.Для вывода денег воспользуйтесь кнопкой &#8220;Redeem Money&#8221;<br />
выводятся деньги в системе PayPal (легко переводятся в вебмани)<br />
могу помочь тем кто не знаком с электронными платежными системами</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 1kHz &#124; anti-keseronokan &#187; Blog Archive &#187; String Concatenation dan Performance</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-503</link>
		<dc:creator>1kHz &#124; anti-keseronokan &#187; Blog Archive &#187; String Concatenation dan Performance</dc:creator>
		<pubDate>Sun, 30 Sep 2007 03:26:07 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-503</guid>
		<description>[...] StringBuilder is not always faster StringBuilder is not always faster - Part 2 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] StringBuilder is not always faster StringBuilder is not always faster - Part 2 [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chinh Do</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-501</link>
		<dc:creator>Chinh Do</dc:creator>
		<pubDate>Sat, 29 Sep 2007 06:39:02 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-501</guid>
		<description>Hello all, I have posted a &lt;a href="http://www.chinhdo.com/chinh/blog/20070929/stringbuilder-part-2/" rel="nofollow"&gt;follow-up article&lt;/a&gt; to provide more detailed analysis and to answer some of the questions asked by readers.</description>
		<content:encoded><![CDATA[<p>Hello all, I have posted a <a href="http://www.chinhdo.com/chinh/blog/20070929/stringbuilder-part-2/" rel="nofollow">follow-up article</a> to provide more detailed analysis and to answer some of the questions asked by readers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: StringBuilder is not always faster - Part 2 &#187; Chinh Do</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-499</link>
		<dc:creator>StringBuilder is not always faster - Part 2 &#187; Chinh Do</dc:creator>
		<pubDate>Sat, 29 Sep 2007 06:19:55 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-499</guid>
		<description>[...] a previous article (&#8221;StringBuilder is not always faster), I provided some quick benchmark data and gave &#8220;rules of thumb&#8221; for when to use [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] a previous article (&#8221;StringBuilder is not always faster), I provided some quick benchmark data and gave &#8220;rules of thumb&#8221; for when to use [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Weekly Link Post 8 &#171; Rhonda Tipton&#8217;s WebLog</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-430</link>
		<dc:creator>Weekly Link Post 8 &#171; Rhonda Tipton&#8217;s WebLog</dc:creator>
		<pubDate>Sun, 23 Sep 2007 22:26:33 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-430</guid>
		<description>[...] Do&#160;has posted two&#160;good articles this week: StringBuilder is not always faster ~&#160;11 VS 2005 IDE [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] Do&nbsp;has posted two&nbsp;good articles this week: StringBuilder is not always faster ~&nbsp;11 VS 2005 IDE [&#8230;]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chinh Do</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-424</link>
		<dc:creator>Chinh Do</dc:creator>
		<pubDate>Sun, 23 Sep 2007 19:10:18 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-424</guid>
		<description>AJ.NET: Thanks for the info re string.Concat. That's nice to know.

Re the "for" loop, that's there intentionally and it's not part of what I wanted to measure... it's there to measure multiple times for a more accurate final result. If I didn't have the for loop, the operation would probably too fast to measure accurately.

Flyswat: I have not looked at string.Format vs "+". I hope to experiment some and will post back here with the results.</description>
		<content:encoded><![CDATA[<p>AJ.NET: Thanks for the info re string.Concat. That&#8217;s nice to know.</p>
<p>Re the &#8220;for&#8221; loop, that&#8217;s there intentionally and it&#8217;s not part of what I wanted to measure&#8230; it&#8217;s there to measure multiple times for a more accurate final result. If I didn&#8217;t have the for loop, the operation would probably too fast to measure accurately.</p>
<p>Flyswat: I have not looked at string.Format vs &#8220;+&#8221;. I hope to experiment some and will post back here with the results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Flyswat</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-405</link>
		<dc:creator>Flyswat</dc:creator>
		<pubDate>Fri, 21 Sep 2007 20:31:24 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-405</guid>
		<description>What about String.Format("{0}{1}",string1,string2);

?</description>
		<content:encoded><![CDATA[<p>What about String.Format(&#8221;{0}{1}&#8221;,string1,string2);</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Cumps</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-404</link>
		<dc:creator>David Cumps</dc:creator>
		<pubDate>Fri, 21 Sep 2007 08:34:58 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-404</guid>
		<description>Interesting article! I've done some research on string performance this week as well, in case you're interested: http://blog.cumps.be/string-concatenation-vs-memory-allocation/</description>
		<content:encoded><![CDATA[<p>Interesting article! I&#8217;ve done some research on string performance this week as well, in case you&#8217;re interested: <a href="http://blog.cumps.be/string-concatenation-vs-memory-allocation/" rel="nofollow">http://blog.cumps.be/string-concatenation-vs-memory-allocation/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AJ.NET</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-386</link>
		<dc:creator>AJ.NET</dc:creator>
		<pubDate>Wed, 19 Sep 2007 05:46:24 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-386</guid>
		<description>@Chinh Do: string.Concat is not _better_ than "+", it's identical. If you write "string s= a + b + c;" the compiler will actually emit "string s= string.Concat(a,b,c);". It has to be one statement though, which is one reason why your sample loop didn't use it. 
Have a look at http://ajdotnet.wordpress.com/2007/05/20/about-the-virtue-of-not-improving-performance/ for details.

Regarding the "stringbuilder in loop" example: There may be cases when you cannot avoid such code. It may however be improved by allocating the stringbuilder before the loop and reusing it.

HIH,
AJ.NET</description>
		<content:encoded><![CDATA[<p>@Chinh Do: string.Concat is not _better_ than &#8220;+&#8221;, it&#8217;s identical. If you write &#8220;string s= a + b + c;&#8221; the compiler will actually emit &#8220;string s= string.Concat(a,b,c);&#8221;. It has to be one statement though, which is one reason why your sample loop didn&#8217;t use it.<br />
Have a look at <a href="http://ajdotnet.wordpress.com/2007/05/20/about-the-virtue-of-not-improving-performance/" rel="nofollow">http://ajdotnet.wordpress.com/2007/05/20/about-the-virtue-of-not-improving-performance/</a> for details.</p>
<p>Regarding the &#8220;stringbuilder in loop&#8221; example: There may be cases when you cannot avoid such code. It may however be improved by allocating the stringbuilder before the loop and reusing it.</p>
<p>HIH,<br />
AJ.NET</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chinh Do</title>
		<link>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-383</link>
		<dc:creator>Chinh Do</dc:creator>
		<pubDate>Tue, 18 Sep 2007 23:04:36 +0000</pubDate>
		<guid>http://www.chinhdo.com/20070224/stringbuilder-is-not-always-faster/#comment-383</guid>
		<description>Lars: I didn't even know about string.Concat before today. It appears to be a better way to concatenate up to four dynamic strings than the "+" operator because it allocates memory for all the values in advance. I hope to shed some more light on string.Concat in a follow-up article.</description>
		<content:encoded><![CDATA[<p>Lars: I didn&#8217;t even know about string.Concat before today. It appears to be a better way to concatenate up to four dynamic strings than the &#8220;+&#8221; operator because it allocates memory for all the values in advance. I hope to shed some more light on string.Concat in a follow-up article.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
