<?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: Practical Performance Tweaks</title>
	<atom:link href="http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/feed/" rel="self" type="application/rss+xml" />
	<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=practical-performance-tweaks</link>
	<description>Jonathan Campos&#039;s Blog about Flex and the Flash Platform</description>
	<lastBuildDate>Fri, 30 Jul 2010 09:47:28 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-573</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Fri, 12 Feb 2010 16:52:19 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-573</guid>
		<description>I agree that you receive Null. I did make sure to include that warning when using &quot;as&quot;. But I left it in there so I didn&#039;t get people saying I forgot NumberAsString as one of the permutations. One of those situations where you&#039;re damned if you do, damned if you don&#039;t.</description>
		<content:encoded><![CDATA[<p>I agree that you receive Null. I did make sure to include that warning when using &#8220;as&#8221;. But I left it in there so I didn&#8217;t get people saying I forgot NumberAsString as one of the permutations. One of those situations where you&#8217;re damned if you do, damned if you don&#8217;t.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: georgi</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-571</link>
		<dc:creator>georgi</dc:creator>
		<pubDate>Fri, 12 Feb 2010 14:16:03 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-571</guid>
		<description>The NumberAsString is wrong -- it should be excluded from the tests.
That&#039;s because:
41.5 as String is clearly null and not &quot;41.5&quot;.

&#039;as&#039; does not convert. It just checks the RTTI and returns non-null only if the object is an instance of the class argument.</description>
		<content:encoded><![CDATA[<p>The NumberAsString is wrong &#8212; it should be excluded from the tests.<br />
That&#8217;s because:<br />
41.5 as String is clearly null and not &#8220;41.5&#8243;.</p>
<p>&#8216;as&#8217; does not convert. It just checks the RTTI and returns non-null only if the object is an instance of the class argument.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Most Tweeted Articles by Flash Experts</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-446</link>
		<dc:creator>Most Tweeted Articles by Flash Experts</dc:creator>
		<pubDate>Sat, 26 Dec 2009 12:26:50 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-446</guid>
		<description>[...] 2010 (25/03/2010)             4  Likes     Adobe: Flex 4 beta in a Week             4  Likes     Practical Performance Tweaks &#124; The World In A State of Flex     I&#039;ve had a little bit of time on my hands in my day job *cough choke laugh* and thought I would [...]</description>
		<content:encoded><![CDATA[<p>[...] 2010 (25/03/2010)             4  Likes     Adobe: Flex 4 beta in a Week             4  Likes     Practical Performance Tweaks | The World In A State of Flex     I&#39;ve had a little bit of time on my hands in my day job *cough choke laugh* and thought I would [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-405</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:12:48 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-405</guid>
		<description>@sascha That was my guess too. Making the additional reference to a static function seemed more like another hoop to jump through rather than a point of improvement.</description>
		<content:encoded><![CDATA[<p>@sascha That was my guess too. Making the additional reference to a static function seemed more like another hoop to jump through rather than a point of improvement.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-404</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Wed, 02 Dec 2009 15:11:15 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-404</guid>
		<description>@Germain It wasn&#039;t that I found these stats. I created these tests to run because I wanted to see not what people said / assumed was faster, but instead what actually was faster. You can view source and see the tests and run them for yourself. I will be releasing another set of tests at some point as performance testing has been interesting and fun.</description>
		<content:encoded><![CDATA[<p>@Germain It wasn&#8217;t that I found these stats. I created these tests to run because I wanted to see not what people said / assumed was faster, but instead what actually was faster. You can view source and see the tests and run them for yourself. I will be releasing another set of tests at some point as performance testing has been interesting and fun.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sascha/hdrs</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-403</link>
		<dc:creator>sascha/hdrs</dc:creator>
		<pubDate>Wed, 02 Dec 2009 14:53:48 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-403</guid>
		<description>Nevermind. After some quick tests it turns out that calling Math functions directly is much faster than storing them in a var or even const.</description>
		<content:encoded><![CDATA[<p>Nevermind. After some quick tests it turns out that calling Math functions directly is much faster than storing them in a var or even const.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sascha/hdrs</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-402</link>
		<dc:creator>sascha/hdrs</dc:creator>
		<pubDate>Wed, 02 Dec 2009 13:39:56 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-402</guid>
		<description>Some very interesting results here, thanks for the tests! According to this site http://wiki.joa-ebert.com/index.php/Casting wrapped cast is faster than cast with  &#039;as&#039;.

One case that would still interest me is if a Math function stored in a class property is faster than using it direclty. E.g.

private var _mathRandom:Function = Math.random;
...
somewhere down the line:
var n:Numer = _mathRandom();

instead of:
var n:Numer = Math.random();</description>
		<content:encoded><![CDATA[<p>Some very interesting results here, thanks for the tests! According to this site <a href="http://wiki.joa-ebert.com/index.php/Casting" rel="nofollow">http://wiki.joa-ebert.com/index.php/Casting</a> wrapped cast is faster than cast with  &#8216;as&#8217;.</p>
<p>One case that would still interest me is if a Math function stored in a class property is faster than using it direclty. E.g.</p>
<p>private var _mathRandom:Function = Math.random;<br />
&#8230;<br />
somewhere down the line:<br />
var n:Numer = _mathRandom();</p>
<p>instead of:<br />
var n:Numer = Math.random();</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Germain LECOURTOIS</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-401</link>
		<dc:creator>Germain LECOURTOIS</dc:creator>
		<pubDate>Wed, 02 Dec 2009 13:19:13 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-401</guid>
		<description>Function.apply ... I&#039;m not the first who is surprised...
How did you find this tips ?

Thanks for this benchmark !</description>
		<content:encoded><![CDATA[<p>Function.apply &#8230; I&#8217;m not the first who is surprised&#8230;<br />
How did you find this tips ?</p>
<p>Thanks for this benchmark !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Twitted by nothingagency</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-400</link>
		<dc:creator>Twitted by nothingagency</dc:creator>
		<pubDate>Wed, 02 Dec 2009 12:42:38 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-400</guid>
		<description>[...] This post was Twitted by nothingagency [...]</description>
		<content:encoded><![CDATA[<p>[...] This post was Twitted by nothingagency [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Campos</title>
		<link>http://unitedmindset.com/jonbcampos/2009/11/30/practical-performance-tweaks/comment-page-1/#comment-399</link>
		<dc:creator>Jonathan Campos</dc:creator>
		<pubDate>Tue, 01 Dec 2009 12:39:04 +0000</pubDate>
		<guid isPermaLink="false">http://unitedmindset.com/jonbcampos/?p=1018#comment-399</guid>
		<description>@krdr That would be interesting tests. Finding in first position and finding in last position. You will notice from my tests that I put the if..then and switch..case statements in the same order and randomized the order that the true result would be found so that it would equalize the found first, second, or last. But that would be an interesting set of tests to add, just to see the results.</description>
		<content:encoded><![CDATA[<p>@krdr That would be interesting tests. Finding in first position and finding in last position. You will notice from my tests that I put the if..then and switch..case statements in the same order and randomized the order that the true result would be found so that it would equalize the found first, second, or last. But that would be an interesting set of tests to add, just to see the results.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
