<?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>Thu, 02 Feb 2012 17:25:41 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comment on Repeatable Random by jackson</title>
		<link>http://jacksondunstan.com/articles/393/comment-page-1#comment-21685</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Thu, 02 Feb 2012 17:25:41 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=393#comment-21685</guid>
		<description>Yes, those are definitely good uses of the class.

I haven&#039;t performance tested it, but that&#039;s a good idea for a followup article. Thanks for the tip.</description>
		<content:encoded><![CDATA[<p>Yes, those are definitely good uses of the class.</p>
<p>I haven&#8217;t performance tested it, but that&#8217;s a good idea for a followup article. Thanks for the tip.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Repeatable Random by Alexander</title>
		<link>http://jacksondunstan.com/articles/393/comment-page-1#comment-21661</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Thu, 02 Feb 2012 09:55:12 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=393#comment-21661</guid>
		<description>Very interesting - this also allows for things like tool-assisted speedruns in games (assuming you store the seed serially or somesuch). It also allows for physics engines to be deterministic. 

Have you done a test for performance vs. Math.random()?</description>
		<content:encoded><![CDATA[<p>Very interesting &#8211; this also allows for things like tool-assisted speedruns in games (assuming you store the seed serially or somesuch). It also allows for physics engines to be deterministic. </p>
<p>Have you done a test for performance vs. Math.random()?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by NemoStein</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21591</link>
		<dc:creator>NemoStein</dc:creator>
		<pubDate>Wed, 01 Feb 2012 11:14:34 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21591</guid>
		<description>&quot;Flash Player 11.2.202.197 (beta 5, 64-bit, ‘release’, ActiveX)&quot;

Maybe FP 11.2 has some improvements that can lead to this result.
Beta 5 should be the last beta before release, so, in two weeks we can see the &quot;real&quot; results of this.</description>
		<content:encoded><![CDATA[<p>&#8220;Flash Player 11.2.202.197 (beta 5, 64-bit, ‘release’, ActiveX)&#8221;</p>
<p>Maybe FP 11.2 has some improvements that can lead to this result.<br />
Beta 5 should be the last beta before release, so, in two weeks we can see the &#8220;real&#8221; results of this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by Kyle Murray / Krilnon</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21581</link>
		<dc:creator>Kyle Murray / Krilnon</dc:creator>
		<pubDate>Wed, 01 Feb 2012 07:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21581</guid>
		<description>Using your tests, I don&#039;t get such ridiculously slow results for Math[&#039;PI&#039;]:

Flash Player 11.2.202.197 (beta 5, 64-bit, &#039;release&#039;, ActiveX)
SDK 4.5.1
Core i7-2600K 3.4 GHz
&lt;pre lang=&quot;actionscript3&quot;&gt;
Get class,1
Dot access static var,5
Index access static var,63 // 63 is a lot lower than 1360
Math.public::PI,4 // I added this one
num = val,2
num = this.val,2
num = superVal,2
num = this.superVal,2
num = super.superVal,1
num = staticVal,2
num = StaticTest2.staticVal,
&lt;/pre&gt;

Of course there are a number of differences in our setups, but it seemed like a notable performance difference.</description>
		<content:encoded><![CDATA[<p>Using your tests, I don&#8217;t get such ridiculously slow results for Math['PI']:</p>
<p>Flash Player 11.2.202.197 (beta 5, 64-bit, &#8216;release&#8217;, ActiveX)<br />
SDK 4.5.1<br />
Core i7-2600K 3.4 GHz</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">Get <span style="color: #9900cc; font-weight: bold;">class</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">1</span>
Dot access static <span style="color: #6699cc; font-weight: bold;">var</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">5</span>
Index access static <span style="color: #6699cc; font-weight: bold;">var</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">63</span> <span style="color: #009900; font-style: italic;">// 63 is a lot lower than 1360</span>
<span style="color: #004993;">Math</span><span style="color: #000066; font-weight: bold;">.</span><span style="color: #0033ff; font-weight: bold;">public</span><span style="color: #000066; font-weight: bold;">::</span><span style="color: #004993;">PI</span><span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">4</span> <span style="color: #009900; font-style: italic;">// I added this one</span>
num = val<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">2</span>
num = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>val<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">2</span>
num = superVal<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">2</span>
num = <span style="color: #0033ff; font-weight: bold;">this</span><span style="color: #000066; font-weight: bold;">.</span>superVal<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">2</span>
num = <span style="color: #0033ff; font-weight: bold;">super</span><span style="color: #000066; font-weight: bold;">.</span>superVal<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">1</span>
num = staticVal<span style="color: #000066; font-weight: bold;">,</span><span style="color: #000000; font-weight:bold;">2</span>
num = StaticTest2<span style="color: #000066; font-weight: bold;">.</span>staticVal<span style="color: #000066; font-weight: bold;">,</span></pre></div></div>

<p>Of course there are a number of differences in our setups, but it seemed like a notable performance difference.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by Kyle Murray / Krilnon</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21580</link>
		<dc:creator>Kyle Murray / Krilnon</dc:creator>
		<pubDate>Wed, 01 Feb 2012 06:43:13 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21580</guid>
		<description>framep is the frame pointer, which points to an address in the current stack frame.  It&#039;s useful because the stack pointer register often changes around during the execution of code in that frame.</description>
		<content:encoded><![CDATA[<p>framep is the frame pointer, which points to an address in the current stack frame.  It&#8217;s useful because the stack pointer register often changes around during the execution of code in that frame.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by jackson</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21547</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Tue, 31 Jan 2012 19:57:00 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21547</guid>
		<description>Very interesting insights. Thanks for sharing. When your post-compile optimizer is in usable shape, I&#039;d love to test it out for you.</description>
		<content:encoded><![CDATA[<p>Very interesting insights. Thanks for sharing. When your post-compile optimizer is in usable shape, I&#8217;d love to test it out for you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by Rackdoll</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21518</link>
		<dc:creator>Rackdoll</dc:creator>
		<pubDate>Tue, 31 Jan 2012 13:44:38 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21518</guid>
		<description>ok. seems clear enough. Thnx for the feedback!
keep on the greatness!</description>
		<content:encoded><![CDATA[<p>ok. seems clear enough. Thnx for the feedback!<br />
keep on the greatness!</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by skyboy</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21512</link>
		<dc:creator>skyboy</dc:creator>
		<pubDate>Tue, 31 Jan 2012 12:31:53 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21512</guid>
		<description>&lt;code&gt;public&lt;/code&gt; is marginally faster (less than 1%) at thousands of iterations; the rest of them have less meaningful differences and const/var perform identically.

When it comes to these matters (public/private/protected/internal/custom &#124; const/var), write your code for what you need it to do; performance gains/losses is entirely meaningless due to incredibly small gains, that result in nothing of value when the user has other applications running that compete for resources (so, everyone).</description>
		<content:encoded><![CDATA[<p><code>public</code> is marginally faster (less than 1%) at thousands of iterations; the rest of them have less meaningful differences and const/var perform identically.</p>
<p>When it comes to these matters (public/private/protected/internal/custom | const/var), write your code for what you need it to do; performance gains/losses is entirely meaningless due to incredibly small gains, that result in nothing of value when the user has other applications running that compete for resources (so, everyone).</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by Rackdoll</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21502</link>
		<dc:creator>Rackdoll</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:09:43 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21502</guid>
		<description>or are the results same as &quot; protected static&quot;  ?
Is there even a difference in performance..-&gt; protected , private or public constants ?</description>
		<content:encoded><![CDATA[<p>or are the results same as &#8221; protected static&#8221;  ?<br />
Is there even a difference in performance..-&gt; protected , private or public constants ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comment on Why Static Is Slow by Rackdoll</title>
		<link>http://jacksondunstan.com/articles/1713/comment-page-1#comment-21501</link>
		<dc:creator>Rackdoll</dc:creator>
		<pubDate>Tue, 31 Jan 2012 09:07:53 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=1713#comment-21501</guid>
		<description>First of all.... --&gt; Nice article.

Second. 
I was wondering if you tried the private static var / const in your tests ?
IF so can you post those results..... ?

thnx :)</description>
		<content:encoded><![CDATA[<p>First of all&#8230;. &#8211;&gt; Nice article.</p>
<p>Second.<br />
I was wondering if you tried the private static var / const in your tests ?<br />
IF so can you post those results&#8230;.. ?</p>
<p>thnx :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>

