<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Don&#8217;t Call GC.Collect Every Frame</title>
	<atom:link href="http://www.chadpluspl.us/?feed=rss2&#038;p=162" rel="self" type="application/rss+xml" />
	<link>http://www.chadpluspl.us/?p=162</link>
	<description></description>
	<lastBuildDate>Mon, 30 Aug 2010 20:13:15 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Colin</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-232</link>
		<dc:creator>Colin</dc:creator>
		<pubDate>Thu, 10 Dec 2009 18:41:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-232</guid>
		<description>However, the concatenation of the three strings does create three new strings as the string objects are changed: 
    string tempString = &quot;Hello&quot;; 
    tempString += &quot; &quot;;// tempString is now &quot;Hello &quot; 
    tempString += &quot;World&quot;;//tempString is now &quot;Hello World&quot; 
    tempString += &quot;!&quot;;//tempString is now &quot;Hello World!&quot; 
 
So in total, 7 strings exist, but 4 of those were string literals, so only three ones were created new. </description>
		<content:encoded><![CDATA[<p>However, the concatenation of the three strings does create three new strings as the string objects are changed:<br />
    string tempString = &quot;Hello&quot;;<br />
    tempString += &quot; &quot;;// tempString is now &quot;Hello &quot;<br />
    tempString += &quot;World&quot;;//tempString is now &quot;Hello World&quot;<br />
    tempString += &quot;!&quot;;//tempString is now &quot;Hello World!&quot; </p>
<p>So in total, 7 strings exist, but 4 of those were string literals, so only three ones were created new.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IGoByChad</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-227</link>
		<dc:creator>IGoByChad</dc:creator>
		<pubDate>Wed, 09 Dec 2009 22:20:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-227</guid>
		<description>Well, .Net does not keep a list of every possible constant string around. That would truly be the rubbish. However, I&#039;m not quite sure what you mean. By typing &quot;Hello&quot; we have created a fully qualified instance of the &quot;Hello&quot; string. You can do &quot;Hello&quot;.Length if you wanted. It&#039;s very awkward looking at first. (You can do 1.ToString() as well!) However, it&#039;s a string nonetheless. When you assign it to the tempString, it does not create an entirely new copy of &quot;Hello&quot;, but you created a string.  </description>
		<content:encoded><![CDATA[<p>Well, .Net does not keep a list of every possible constant string around. That would truly be the rubbish. However, I&#039;m not quite sure what you mean. By typing &quot;Hello&quot; we have created a fully qualified instance of the &quot;Hello&quot; string. You can do &quot;Hello&quot;.Length if you wanted. It&#039;s very awkward looking at first. (You can do 1.ToString() as well!) However, it&#039;s a string nonetheless. When you assign it to the tempString, it does not create an entirely new copy of &quot;Hello&quot;, but you created a string.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Name</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-226</link>
		<dc:creator>Name</dc:creator>
		<pubDate>Wed, 09 Dec 2009 20:03:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-226</guid>
		<description>You might be interested to see this explanation: &lt;a href=&quot;http://www.reddit.com/r/programming/comments/acue9/dont_call_gccollect_every_frame/c0gy8b9&quot; target=&quot;_blank&quot;&gt;http://www.reddit.com/r/programming/comments/acue...&lt;/a&gt; </description>
		<content:encoded><![CDATA[<p>You might be interested to see this explanation: <a href="http://www.reddit.com/r/programming/comments/acue9/dont_call_gccollect_every_frame/c0gy8b9" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.reddit.com/r/programming/comments/acue9/dont_call_gccollect_every_frame/c0gy8b9?referer=');"></a><a href="http://www.reddit.com/r/programming/comments/acue.." rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/www.reddit.com/r/programming/comments/acue..?referer=');">http://www.reddit.com/r/programming/comments/acue..</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bob</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-225</link>
		<dc:creator>Bob</dc:creator>
		<pubDate>Wed, 09 Dec 2009 19:21:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-225</guid>
		<description>In the string example, aren&#039;t you only creating three strings? &quot;Hello&quot; is a constant (like &quot; &quot;) and setting tempString to it will just alter what it refers to. Or is .NET so rubbish that a string gets copied when it&#039;s assigned to a variable? </description>
		<content:encoded><![CDATA[<p>In the string example, aren&#039;t you only creating three strings? &quot;Hello&quot; is a constant (like &quot; &quot;) and setting tempString to it will just alter what it refers to. Or is .NET so rubbish that a string gets copied when it&#039;s assigned to a variable?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: IGoByChad</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-224</link>
		<dc:creator>IGoByChad</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-224</guid>
		<description>Yes! I saw the first article and coming from a C++ side, it was a very thorough review for me. The only reason I didn&#039;t link to that in the main article is that I wanted to keep the article focused.  
  
Very good first article though, and I&#039;m more than happy to have the further information in the comments. I recommend it for anyone who doesn&#039;t have a firm grasp on stack versus heap or even just the memory management of .Net.  </description>
		<content:encoded><![CDATA[<p>Yes! I saw the first article and coming from a C++ side, it was a very thorough review for me. The only reason I didn&#039;t link to that in the main article is that I wanted to keep the article focused.  </p>
<p>Very good first article though, and I&#039;m more than happy to have the further information in the comments. I recommend it for anyone who doesn&#039;t have a firm grasp on stack versus heap or even just the memory management of .Net.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BittermanAndy</title>
		<link>http://www.chadpluspl.us/?p=162&#038;cpage=1#comment-223</link>
		<dc:creator>BittermanAndy</dc:creator>
		<pubDate>Wed, 09 Dec 2009 17:20:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.welcometomattersville.com/chad/blog/?p=162#comment-223</guid>
		<description>Hi - author of Pandemonium (your second link) here. Top work on digging deeper and deeper! I&#039;m always uncomfortable with simply accepting the received wisdom as well. 
 
I&#039;d just like to add that you linked to part two of my GC thoughts... at the risk of shamelessly plugging my own articles, part one talks about everything that happens during a garbage collection. It doesn&#039;t add any more information to your final conclusion (don&#039;t call GC.Collect every frame because the overhead is too high), but it may give some insight into why the overhead gets too high - in fact, what exactly the overhead consists of. Link: &lt;a href=&quot;http://bittermanandy.wordpress.com/2008/10/19/garbage-part-one-stack-and-heap/&quot; target=&quot;_blank&quot;&gt;http://bittermanandy.wordpress.com/2008/10/19/gar...&lt;/a&gt; 
 
Thanks! </description>
		<content:encoded><![CDATA[<p>Hi &#8211; author of Pandemonium (your second link) here. Top work on digging deeper and deeper! I&#039;m always uncomfortable with simply accepting the received wisdom as well. </p>
<p>I&#039;d just like to add that you linked to part two of my GC thoughts&#8230; at the risk of shamelessly plugging my own articles, part one talks about everything that happens during a garbage collection. It doesn&#039;t add any more information to your final conclusion (don&#039;t call GC.Collect every frame because the overhead is too high), but it may give some insight into why the overhead gets too high &#8211; in fact, what exactly the overhead consists of. Link: <a href="http://bittermanandy.wordpress.com/2008/10/19/garbage-part-one-stack-and-heap/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/bittermanandy.wordpress.com/2008/10/19/garbage-part-one-stack-and-heap/?referer=');"></a><a href="http://bittermanandy.wordpress.com/2008/10/19/gar.." rel="nofollow" onclick="pageTracker._trackPageview('/outgoing/bittermanandy.wordpress.com/2008/10/19/gar..?referer=');">http://bittermanandy.wordpress.com/2008/10/19/gar..</a>. </p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
</channel>
</rss>
