<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Jozef Chúťka&#039;s blog &#187; loops</title>
	<atom:link href="http://blog.yoz.sk/tag/loops/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.yoz.sk</link>
	<description>My life, my work</description>
	<lastBuildDate>Tue, 31 Jan 2012 12:40:53 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Quick Tip: Labeling Loops</title>
		<link>http://blog.yoz.sk/2010/08/quick-tip-labeling-loops/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=quick-tip-labeling-loops</link>
		<comments>http://blog.yoz.sk/2010/08/quick-tip-labeling-loops/#comments</comments>
		<pubDate>Thu, 26 Aug 2010 13:13:02 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[break]]></category>
		<category><![CDATA[for]]></category>
		<category><![CDATA[for each]]></category>
		<category><![CDATA[label]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[while]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=2256</guid>
		<description><![CDATA[Did you know you can label loops in ActionScript 3? Yes, you can! I got inspired by latest tweets referencing source code in image. Lets do some small experiments&#8230; Label all of them: Where to go from here Nocreativity.com See it in action on wonderfl.net]]></description>
			<content:encoded><![CDATA[<p>Did you know you can label loops in ActionScript 3? Yes, you can! I got inspired by latest tweets referencing <a href="http://shots.nocreativity.com/af10ceecfe3e71074041d5d8da893abf.jpg">source code in image</a>. Lets do some small experiments&#8230; Label all of them:</p>
<pre class="brush: as3; title: ; notranslate">var a:uint, b:uint = 0;
loopA:for(a = 0; a &lt; 10; a++)
    loopB:while(b++ &lt; 100)
        loopC:for each(var c:uint in [0,1,2,3])
            break loopB;

trace(a, b, c); // traces &quot;10 10 0&quot;</pre>
<p><span id="more-2256"></span></p>
<p>Where to go from here</p>
<ul>
<li><a href="http://shots.nocreativity.com/af10ceecfe3e71074041d5d8da893abf.jpg">Nocreativity.com</a></li>
<li><a href="http://wonderfl.net/c/b2FY">See it in action on wonderfl.net</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2010/08/quick-tip-labeling-loops/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ActionScript 3 Performance Testing</title>
		<link>http://blog.yoz.sk/2009/11/actionscript-3-performance-testing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=actionscript-3-performance-testing</link>
		<comments>http://blog.yoz.sk/2009/11/actionscript-3-performance-testing/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 10:42:12 +0000</pubDate>
		<dc:creator>Jozef Chúťka</dc:creator>
				<category><![CDATA[ActionScript]]></category>
		<category><![CDATA[Best Practices]]></category>
		<category><![CDATA[Flash / Flex]]></category>
		<category><![CDATA[benchmark]]></category>
		<category><![CDATA[enumerations]]></category>
		<category><![CDATA[int]]></category>
		<category><![CDATA[iterations]]></category>
		<category><![CDATA[loops]]></category>
		<category><![CDATA[Number]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[speed]]></category>
		<category><![CDATA[uint]]></category>

		<guid isPermaLink="false">http://blog.yoz.sk/?p=457</guid>
		<description><![CDATA[Have you ever been curious about performance (benchmark) tests in ActionScript 3? Here are some results gathered from gskinner blog. Performance testing on loops (read more). Performance testing on operations with Number, int, uint. (read more)]]></description>
			<content:encoded><![CDATA[<p>Have you ever been curious about performance (benchmark) tests in ActionScript 3? Here are some results gathered from <a href="http://www.gskinner.com/blog/">gskinner blog</a>.</p>
<p> Performance testing on loops (<a href="http://www.gskinner.com/blog/archives/2009/04/as3_performance.html">read more</a>).</p>
<pre class="brush: plain; title: ; notranslate">
method............................................................. ms
for (var i:uint=0; i&lt;length; i++)                                   40
for (var i:uint=length; i&gt;0; i--)                                   40
var i:uint = 0; while (i &lt; length) i++;                             40
var i:uint = length; while (--i)                                    52
var i:uint = 0; do {} while (++i &lt; length);                         68
var i:uint = length-1; do {} while (i--);                           68
for (var b:* in arr)                                               224
for each (var b:Boolean in arr)                                    216
for each (var b:* in arr)                                          200
for each (var b:* in arr) var c:Boolean = b as Boolean;            686
arr.forEach(arrForEachF)                                          1446
</pre>
<p>Performance testing on operations with <a href="http://help.adobe.com/cs_CZ/AS3LCR/Flash_10.0/Number.html">Number</a>, <a href="http://help.adobe.com/cs_CZ/AS3LCR/Flash_10.0/int.html">int</a>, <a href="http://help.adobe.com/cs_CZ/AS3LCR/Flash_10.0/uint.html">uint</a>. (<a href="http://www.gskinner.com/blog/archives/2006/06/types_in_as3_in.html">read more</a>)</p>
<pre class="brush: plain; title: ; notranslate">
Assignment (a:TYPE = 0) ......... min - max (ms)
int:                               24 -  45
Number:                            24 -  36
uint:                              25 -  37
</pre>
<pre class="brush: plain; title: ; notranslate">
Assignment (a:TYPE = 0.5) ....... min - max (ms)
int:                               56 -  83
Number:                            26 -  43
uint:                              57 -  92
</pre>
<pre class="brush: plain; title: ; notranslate">
Division (a:TYPE = i/2) ......... min - max (ms)
int:                               60 - 105
Number:                            34 -  64
uint:                             184 - 278
</pre>
<pre class="brush: plain; title: ; notranslate">
Multiplication (a:TYPE = i*2) ... min - max (ms)
int:                               78 - 129
Number:                            39 -  64
uint:                             207 - 280
</pre>
<pre class="brush: plain; title: ; notranslate">
Addition (a:TYPE = i+2) ......... min - max (ms)
int:                               31 -  49
Number:                            44 -  55
uint:                              85 - 113
</pre>
<pre class="brush: plain; title: ; notranslate">
Bitshift (a:TYPE = i&lt;&lt;1) ........ min - max (ms)
int:                               31 -  63
Number:                            61 - 114
uint:                              71 - 130
</pre>
]]></content:encoded>
			<wfw:commentRss>http://blog.yoz.sk/2009/11/actionscript-3-performance-testing/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

