<?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: Building XML</title>
	<atom:link href="http://jacksondunstan.com/articles/387/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/387</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Mon, 14 May 2012 17:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-23659</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 27 Feb 2012 16:33:11 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-23659</guid>
		<description>I also mentioned it in &lt;a href=&quot;/articles/1279&quot; rel=&quot;nofollow&quot;&gt;Hidden Object Allocations&lt;/a&gt;, but you&#039;re right that I&#039;ve never explicitly tested the performance. It&#039;s a great idea though so I&#039;ll add it to my list. Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>I also mentioned it in <a href="/articles/1279" rel="nofollow">Hidden Object Allocations</a>, but you&#8217;re right that I&#8217;ve never explicitly tested the performance. It&#8217;s a great idea though so I&#8217;ll add it to my list. Thanks for the tip!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: skyboy</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-23648</link>
		<dc:creator>skyboy</dc:creator>
		<pubDate>Mon, 27 Feb 2012 11:16:16 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-23648</guid>
		<description>I attempted to find an article where you tested the speed of concatenating strings, but this is the most relevant I found via search. You should run an article showing the difference between &lt;code&gt;str += str&lt;/code&gt;,  &lt;code&gt;str += &quot;data&quot;&lt;/code&gt;, and &lt;code&gt;buffer.writeUTFBytes(str)&lt;/code&gt;. I believe that in v11 the former has been sped up to more closely match the latter; though I&#039;m uncertain (something you could cover). For single characters there&#039;s also &lt;code&gt;buffer[inx] = charCode&lt;/code&gt; and writeByte (anything over 0x7F requires UTF-8 encoding to be applied manually). I&#039;ve also written a &lt;a href=&quot;https://raw.github.com/skyboy/AS3-Utilities/master/skyboy/utils/StringBuffer.as&quot; rel=&quot;nofollow&quot;&gt;StringBuffer&lt;/a&gt; class similar to what you&#039;d find in a language like Java.</description>
		<content:encoded><![CDATA[<p>I attempted to find an article where you tested the speed of concatenating strings, but this is the most relevant I found via search. You should run an article showing the difference between <code>str += str</code>,  <code>str += "data"</code>, and <code>buffer.writeUTFBytes(str)</code>. I believe that in v11 the former has been sped up to more closely match the latter; though I&#8217;m uncertain (something you could cover). For single characters there&#8217;s also <code>buffer[inx] = charCode</code> and writeByte (anything over 0x7F requires UTF-8 encoding to be applied manually). I&#8217;ve also written a <a href="https://raw.github.com/skyboy/AS3-Utilities/master/skyboy/utils/StringBuffer.as" rel="nofollow">StringBuffer</a> class similar to what you&#8217;d find in a language like Java.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-413</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Sun, 29 Nov 2009 23:55:06 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-413</guid>
		<description>Unfortunately it&#039;s not available in AS3, AS2, or JavaScript. Maybe one day there will be a port.</description>
		<content:encoded><![CDATA[<p>Unfortunately it&#8217;s not available in AS3, AS2, or JavaScript. Maybe one day there will be a port.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anon-anon</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-412</link>
		<dc:creator>anon-anon</dc:creator>
		<pubDate>Fri, 27 Nov 2009 19:37:04 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-412</guid>
		<description>You may want to look at vtd-xml as the state of the art in XML processing, consuming far less memory than DOM

&lt;a href=&quot;http://vtd-xml.sf.net&quot; rel=&quot;nofollow&quot;&gt;http://vtd-xml.sf.net&lt;/a&gt;</description>
		<content:encoded><![CDATA[<p>You may want to look at vtd-xml as the state of the art in XML processing, consuming far less memory than DOM</p>
<p><a href="http://vtd-xml.sf.net" rel="nofollow">http://vtd-xml.sf.net</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mels</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-313</link>
		<dc:creator>mels</dc:creator>
		<pubDate>Wed, 21 Oct 2009 14:05:11 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-313</guid>
		<description>1.7 Ghz Intel , 1GB RAM (?), Windows XP, flash player WIN 10,0,32,18</description>
		<content:encoded><![CDATA[<p>1.7 Ghz Intel , 1GB RAM (?), Windows XP, flash player WIN 10,0,32,18</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-308</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Tue, 20 Oct 2009 18:19:26 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-308</guid>
		<description>Interesting. Would you mind posting your test environment (specs, OS, Flash player)?</description>
		<content:encoded><![CDATA[<p>Interesting. Would you mind posting your test environment (specs, OS, Flash player)?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mels</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-307</link>
		<dc:creator>mels</dc:creator>
		<pubDate>Tue, 20 Oct 2009 18:13:01 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-307</guid>
		<description>FYI :
XML Class Time: 564
String Class Time: 3
XML Class from String Time: 13
(var $xml:XML = new XML (studentsString);)</description>
		<content:encoded><![CDATA[<p>FYI :<br />
XML Class Time: 564<br />
String Class Time: 3<br />
XML Class from String Time: 13<br />
(var $xml:XML = new XML (studentsString);)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-306</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 19 Oct 2009 20:33:44 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-306</guid>
		<description>I thought of converting the string to XML and the XML to string, but decided to keep the test pure. After all, sometimes you want the string and sometimes you want the XML, so there is no universal goal that both approaches should go toward. But you showed some interest so I tried it out. It didn&#039;t make any significant difference in either time. I&#039;m still seeing the exact same numbers as I listed in the article. Still, it&#039;s good to know that these conversions are fast!</description>
		<content:encoded><![CDATA[<p>I thought of converting the string to XML and the XML to string, but decided to keep the test pure. After all, sometimes you want the string and sometimes you want the XML, so there is no universal goal that both approaches should go toward. But you showed some interest so I tried it out. It didn&#8217;t make any significant difference in either time. I&#8217;m still seeing the exact same numbers as I listed in the article. Still, it&#8217;s good to know that these conversions are fast!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonnie</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-305</link>
		<dc:creator>Jonnie</dc:creator>
		<pubDate>Mon, 19 Oct 2009 20:26:07 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-305</guid>
		<description>I&#039;d be curious to see what the result is for the String route if you parse it to XML at the end: var $xml:XML = new XML (studentsString);</description>
		<content:encoded><![CDATA[<p>I&#8217;d be curious to see what the result is for the String route if you parse it to XML at the end: var $xml:XML = new XML (studentsString);</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/387/comment-page-1#comment-304</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Mon, 19 Oct 2009 16:24:13 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=387#comment-304</guid>
		<description>I cleaned up your posts (I don&#039;t know how to put XML in comments either, but I&#039;ll look into it) and tried out your version on the Windows environment I added to the article. The difference seemed negligible: 225-235ms compared to 229. Still, it&#039;s a lot cleaner way of doing it, especially for this simple example.

Thanks for the tip!</description>
		<content:encoded><![CDATA[<p>I cleaned up your posts (I don&#8217;t know how to put XML in comments either, but I&#8217;ll look into it) and tried out your version on the Windows environment I added to the article. The difference seemed negligible: 225-235ms compared to 229. Still, it&#8217;s a lot cleaner way of doing it, especially for this simple example.</p>
<p>Thanks for the tip!</p>
]]></content:encoded>
	</item>
</channel>
</rss>

