<?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: Flash/as3 custom namespaces and performance: the name qualifier is slow</title>
	<atom:link href="http://blog.controul.com/2009/03/the-name-qualifier-is-slow/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/</link>
	<description>Elaborations on flash.</description>
	<lastBuildDate>Fri, 23 Sep 2011 08:04:26 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: hristo</title>
		<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/comment-page-1/#comment-111</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Wed, 11 Nov 2009 21:36:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=52#comment-111</guid>
		<description>@Nicolas, I&#039;m overwhelmed with stuff right now, so can&#039;t really make it. But you go for it, include any content you want in the wiki. I&#039;ll give it an eyeball one of those days, promised.
@Mims H. Wright, the &quot;uri&quot; variation would be an interesting thing to check - I bet its just as quick as use namespace namespaceReference, as in as3 two namespace objects with the same url equate ... curious though. I&#039;m not sure I can make the check anytime soon though, so if you could pull the sources and run the check for us, and then even post back - well, that would be nice.</description>
		<content:encoded><![CDATA[<p>@Nicolas, I&#8217;m overwhelmed with stuff right now, so can&#8217;t really make it. But you go for it, include any content you want in the wiki. I&#8217;ll give it an eyeball one of those days, promised.<br />
@Mims H. Wright, the &#8220;uri&#8221; variation would be an interesting thing to check &#8211; I bet its just as quick as use namespace namespaceReference, as in as3 two namespace objects with the same url equate &#8230; curious though. I&#8217;m not sure I can make the check anytime soon though, so if you could pull the sources and run the check for us, and then even post back &#8211; well, that would be nice.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nicolas</title>
		<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/comment-page-1/#comment-110</link>
		<dc:creator>Nicolas</dc:creator>
		<pubDate>Thu, 05 Nov 2009 22:57:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=52#comment-110</guid>
		<description>Hi Hristo, I just started adding AS performance tests into a wiki about 3 days ago, would be cool to add this one in as well.

http://nicolasschudel.name/actionscript-performance-wiki/Main_Page</description>
		<content:encoded><![CDATA[<p>Hi Hristo, I just started adding AS performance tests into a wiki about 3 days ago, would be cool to add this one in as well.</p>
<p><a href="http://nicolasschudel.name/actionscript-performance-wiki/Main_Page" rel="nofollow">http://nicolasschudel.name/actionscript-performance-wiki/Main_Page</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mims H. Wright</title>
		<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/comment-page-1/#comment-109</link>
		<dc:creator>Mims H. Wright</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:16:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=52#comment-109</guid>
		<description>What are the results when you implicitly use a namespace by importing it or if you do &#039;use namespace &quot;uri&quot;;&#039;?</description>
		<content:encoded><![CDATA[<p>What are the results when you implicitly use a namespace by importing it or if you do &#8216;use namespace &#8220;uri&#8221;;&#8217;?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hristo</title>
		<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/comment-page-1/#comment-9</link>
		<dc:creator>hristo</dc:creator>
		<pubDate>Tue, 07 Apr 2009 06:41:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=52#comment-9</guid>
		<description>I don&#039;t think the jit does any lazy execution optimizations; I will look into that again.

EDIT:
I reran the test with
&lt;code&gt;
use namespace testns;
value = value + 1;
//and
testns::value = testns::value + 1;
&lt;/code&gt;
Now it gets and sets the variable: hence no way for the loop to be jitted-out (even if the avm2 jit WERE doing such heavy optimisation, I have little doubt that it doesn&#039;t.)
So results, in release fp10 and on the same machine, are as follows:

Accessing a property in a custom namespace.
&gt;	Running test @ 1000000 iterations ...
	Execution took  0.004  seconds.
Accessing a property in a custom namespace with the :: name qualifier.
&gt;	Running test @ 1000000 iterations ...
	Execution took  0.501  seconds.

Again, you see that the time it takes for the name qualifier to do its job twice is double. It&#039;s true that the other stuff is just suspiciously quick; but hey, that&#039;s very good. Why don&#039;t you play around with the test and see what happens? Share back.
</description>
		<content:encoded><![CDATA[<p>I don&#8217;t think the jit does any lazy execution optimizations; I will look into that again.</p>
<p>EDIT:<br />
I reran the test with<br />
<code><br />
use namespace testns;<br />
value = value + 1;<br />
//and<br />
testns::value = testns::value + 1;<br />
</code><br />
Now it gets and sets the variable: hence no way for the loop to be jitted-out (even if the avm2 jit WERE doing such heavy optimisation, I have little doubt that it doesn&#8217;t.)<br />
So results, in release fp10 and on the same machine, are as follows:</p>
<p>Accessing a property in a custom namespace.<br />
>	Running test @ 1000000 iterations &#8230;<br />
	Execution took  0.004  seconds.<br />
Accessing a property in a custom namespace with the :: name qualifier.<br />
>	Running test @ 1000000 iterations &#8230;<br />
	Execution took  0.501  seconds.</p>
<p>Again, you see that the time it takes for the name qualifier to do its job twice is double. It&#8217;s true that the other stuff is just suspiciously quick; but hey, that&#8217;s very good. Why don&#8217;t you play around with the test and see what happens? Share back.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph</title>
		<link>http://blog.controul.com/2009/03/the-name-qualifier-is-slow/comment-page-1/#comment-8</link>
		<dc:creator>Ralph</dc:creator>
		<pubDate>Tue, 07 Apr 2009 04:13:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.controul.com/?p=52#comment-8</guid>
		<description>For the fast case, about 3ns per iteration, is the jit really giving you that or has it managed to optimise away the loop entirely?</description>
		<content:encoded><![CDATA[<p>For the fast case, about 3ns per iteration, is the jit really giving you that or has it managed to optimise away the loop entirely?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

