<?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 for JacksonDunstan.com</title>
	<atom:link href="http://jacksondunstan.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Wed, 10 Mar 2010 02:25:43 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>Comment on Sorting Vectors by jackson</title>
		<link>http://jacksondunstan.com/articles/270/comment-page-1#comment-562</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Wed, 10 Mar 2010 02:25:43 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=270#comment-562</guid>
		<description>For CPU and memory performance. Converting to a temporary Array requires twice the memory and creates garbage to be collected right away. I can&#039;t imagine it&#039;s a very fast solution either, even disregarding the allocation and GC time. Have you performance tested it?

By the way, you could improve the performance of your implementation by using the &lt;tt&gt;new Array(size)&lt;/tt&gt; constructor since you know how much many elements you need before doing the copy.</description>
		<content:encoded><![CDATA[<p>For CPU and memory performance. Converting to a temporary Array requires twice the memory and creates garbage to be collected right away. I can&#8217;t imagine it&#8217;s a very fast solution either, even disregarding the allocation and GC time. Have you performance tested it?</p>
<p>By the way, you could improve the performance of your implementation by using the <tt>new Array(size)</tt> constructor since you know how much many elements you need before doing the copy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Sorting Vectors by jloa</title>
		<link>http://jacksondunstan.com/articles/270/comment-page-1#comment-561</link>
		<dc:creator>jloa</dc:creator>
		<pubDate>Tue, 09 Mar 2010 17:30:23 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=270#comment-561</guid>
		<description>omg, guys, why do u complicate yr life with such code?! O_O.

To do a Vector.sortOn u need only 5 code lines.
http://chargedweb.com/labs/2010/02/20/vector-sorton/</description>
		<content:encoded><![CDATA[<p>omg, guys, why do u complicate yr life with such code?! O_O.</p>
<p>To do a Vector.sortOn u need only 5 code lines.<br />
<a href="http://chargedweb.com/labs/2010/02/20/vector-sorton/" rel="nofollow">http://chargedweb.com/labs/2010/02/20/vector-sorton/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScrollRect and CacheAsBitmap by jackson</title>
		<link>http://jacksondunstan.com/articles/629/comment-page-1#comment-560</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Tue, 09 Mar 2010 16:27:08 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=629#comment-560</guid>
		<description>You (the AS3 programmer) can&#039;t explicitly dispose the cached bitmap, but you can&#039;t explicitly dispose of anything. All you can do is remove all your references to an object and let the GC clean it up. In this case, the cached bitmap will be cleaned up when you clean up the display objects involved. There is definitely extra memory usage for this technique, but it certainly isn&#039;t a &lt;a href=&quot;http://en.wikipedia.org/wiki/Memory_leak&quot; rel=&quot;nofollow&quot;&gt;memory leak&lt;/a&gt;.</description>
		<content:encoded><![CDATA[<p>You (the AS3 programmer) can&#8217;t explicitly dispose the cached bitmap, but you can&#8217;t explicitly dispose of anything. All you can do is remove all your references to an object and let the GC clean it up. In this case, the cached bitmap will be cleaned up when you clean up the display objects involved. There is definitely extra memory usage for this technique, but it certainly isn&#8217;t a <a href="http://en.wikipedia.org/wiki/Memory_leak" rel="nofollow">memory leak</a>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on ScrollRect and CacheAsBitmap by Piergiorgio Niero</title>
		<link>http://jacksondunstan.com/articles/629/comment-page-1#comment-559</link>
		<dc:creator>Piergiorgio Niero</dc:creator>
		<pubDate>Tue, 09 Mar 2010 14:03:33 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=629#comment-559</guid>
		<description>pay attention in using cacheAsBitmap,
it solves the problem you underlined but there is no way to dispose the cached bitmap causing a memory leak.</description>
		<content:encoded><![CDATA[<p>pay attention in using cacheAsBitmap,<br />
it solves the problem you underlined but there is no way to dispose the cached bitmap causing a memory leak.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Simple TextField Marquee by GordonFlash</title>
		<link>http://jacksondunstan.com/articles/408/comment-page-1#comment-558</link>
		<dc:creator>GordonFlash</dc:creator>
		<pubDate>Tue, 09 Mar 2010 11:12:33 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=408#comment-558</guid>
		<description>Thank You very much Jackson for this Code, been looking for a simple solution for a while! 
Regards!!!</description>
		<content:encoded><![CDATA[<p>Thank You very much Jackson for this Code, been looking for a simple solution for a while!<br />
Regards!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Introducing TurboSignals by Things I learnt recently &#171; Tahir Ahmed&#39;s thoughts</title>
		<link>http://jacksondunstan.com/articles/585/comment-page-1#comment-557</link>
		<dc:creator>Things I learnt recently &#171; Tahir Ahmed&#39;s thoughts</dc:creator>
		<pubDate>Tue, 09 Mar 2010 08:39:02 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=585#comment-557</guid>
		<description>[...] can be (and has been) said about as3signals, but I will keep it for you to explore. Oh and btw, an enhancement to as3signals is going on as well which, to be very honest, is going over my [...]</description>
		<content:encoded><![CDATA[<p>[...] can be (and has been) said about as3signals, but I will keep it for you to explore. Oh and btw, an enhancement to as3signals is going on as well which, to be very honest, is going over my [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Callback Strategies by Things I learnt recently &#171; Tahir Ahmed&#39;s thoughts</title>
		<link>http://jacksondunstan.com/articles/573/comment-page-1#comment-556</link>
		<dc:creator>Things I learnt recently &#171; Tahir Ahmed&#39;s thoughts</dc:creator>
		<pubDate>Tue, 09 Mar 2010 08:37:03 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=573#comment-556</guid>
		<description>[...] Penner, I owe you for that one; you are the man. AS3Signals is simply fantastic. With different tests showing the speed of this event mechanism and a presentation and a video tutorial showing how easy [...]</description>
		<content:encoded><![CDATA[<p>[...] Penner, I owe you for that one; you are the man. AS3Signals is simply fantastic. With different tests showing the speed of this event mechanism and a presentation and a video tutorial showing how easy [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Increment and Decrement by Sindisil</title>
		<link>http://jacksondunstan.com/articles/624/comment-page-1#comment-555</link>
		<dc:creator>Sindisil</dc:creator>
		<pubDate>Fri, 05 Mar 2010 22:35:57 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=624#comment-555</guid>
		<description>Yup, the bottom line is, it seldom matters - use the incr/decr form that&#039;s most comfortable.

Frankly, given the many other optimization opportunities that AS3 misses, I was mildly surprised that, when it&#039;s safe to, AVM2 optimizes away the temporary.

It&#039;s also important to note that the difference in performance, even when there is one, is too small to matter in the context of AS3. We&#039;re talking, at most, 50ms over 100,000,000 repetitions.

I just thought it was worth highlighting the different scenarios.</description>
		<content:encoded><![CDATA[<p>Yup, the bottom line is, it seldom matters &#8211; use the incr/decr form that&#8217;s most comfortable.</p>
<p>Frankly, given the many other optimization opportunities that AS3 misses, I was mildly surprised that, when it&#8217;s safe to, AVM2 optimizes away the temporary.</p>
<p>It&#8217;s also important to note that the difference in performance, even when there is one, is too small to matter in the context of AS3. We&#8217;re talking, at most, 50ms over 100,000,000 repetitions.</p>
<p>I just thought it was worth highlighting the different scenarios.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Increment and Decrement by jackson</title>
		<link>http://jacksondunstan.com/articles/624/comment-page-1#comment-554</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:12:41 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=624#comment-554</guid>
		<description>This is a good point. My test only applies to simple increments and decrements where the value of the expression is not used. This is probably most uses though. Nevertheless, thanks for explaining this and providing your test results!</description>
		<content:encoded><![CDATA[<p>This is a good point. My test only applies to simple increments and decrements where the value of the expression is not used. This is probably most uses though. Nevertheless, thanks for explaining this and providing your test results!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Errors During Dispatch by jackson</title>
		<link>http://jacksondunstan.com/articles/608/comment-page-1#comment-553</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Fri, 05 Mar 2010 18:07:42 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=608#comment-553</guid>
		<description>I tried it:

&lt;pre lang=&quot;actionscript3&quot;&gt;
log(&quot;before&quot;);
throw new AsyncErrorEvent(&quot;boo&quot;);
log(&quot;after&quot;);
&lt;/pre&gt;

But I don&#039;t get the second log. Can you provide sample code?</description>
		<content:encoded><![CDATA[<p>I tried it:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #004993;">log</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;before&quot;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #0033ff; font-weight: bold;">throw</span> <span style="color: #0033ff; font-weight: bold;">new</span> <span style="color: #004993;">AsyncErrorEvent</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;boo&quot;</span><span style="color: #000000;">&#41;</span>;
<span style="color: #004993;">log</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;after&quot;</span><span style="color: #000000;">&#41;</span>;</pre></div></div>

<p>But I don&#8217;t get the second log. Can you provide sample code?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
