<?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: The speed of jQuery.append(&#8230;)</title>
	<atom:link href="http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/feed/" rel="self" type="application/rss+xml" />
	<link>http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/</link>
	<description></description>
	<lastBuildDate>Sat, 24 Dec 2011 10:34:17 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
	<item>
		<title>By: Dusty</title>
		<link>http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/comment-page-1/#comment-1468</link>
		<dc:creator>Dusty</dc:creator>
		<pubDate>Thu, 24 Jun 2010 16:31:42 +0000</pubDate>
		<guid isPermaLink="false">http://softwareblog.morlok.net/?p=370#comment-1468</guid>
		<description>Yeah, I got that the main thing was jquery.append() is an order of magnitude out, but I thought it was interesting that I was averaging only a 10x speed decrease between the last two while you were seeing 30x.

Shame I don&#039;t have FF on that same machine, it&#039;d be interesting to see if it was just a FF/Chrome difference or if the arch plays a part as well.</description>
		<content:encoded><![CDATA[<p>Yeah, I got that the main thing was jquery.append() is an order of magnitude out, but I thought it was interesting that I was averaging only a 10x speed decrease between the last two while you were seeing 30x.</p>
<p>Shame I don&#8217;t have FF on that same machine, it&#8217;d be interesting to see if it was just a FF/Chrome difference or if the arch plays a part as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Warlock</title>
		<link>http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/comment-page-1/#comment-1467</link>
		<dc:creator>Warlock</dc:creator>
		<pubDate>Thu, 24 Jun 2010 03:57:32 +0000</pubDate>
		<guid isPermaLink="false">http://softwareblog.morlok.net/?p=370#comment-1467</guid>
		<description>I only did (a highly unscientific) one run.  Originally when I posted this I only had the first three methods, then I added the fourth (innerHTML) and reran all the numbers on my work computer (Firefox, 32bit Windows XP).  I also ran them on Chrome, but I didn&#039;t record what the results were.

The gist that I took from the results was not to use jQuery.append(...) for large numbers of elements.  innerHTML vs. appendChild wasn&#039;t really a question for me because I need to be able to reference the node specifically in the future, hence I can&#039;t just build everything into one big string.

Thanks for running the numbers again and posting results.</description>
		<content:encoded><![CDATA[<p>I only did (a highly unscientific) one run.  Originally when I posted this I only had the first three methods, then I added the fourth (innerHTML) and reran all the numbers on my work computer (Firefox, 32bit Windows XP).  I also ran them on Chrome, but I didn&#8217;t record what the results were.</p>
<p>The gist that I took from the results was not to use jQuery.append(&#8230;) for large numbers of elements.  innerHTML vs. appendChild wasn&#8217;t really a question for me because I need to be able to reference the node specifically in the future, hence I can&#8217;t just build everything into one big string.</p>
<p>Thanks for running the numbers again and posting results.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dusty</title>
		<link>http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/comment-page-1/#comment-1465</link>
		<dc:creator>Dusty</dc:creator>
		<pubDate>Thu, 24 Jun 2010 00:18:24 +0000</pubDate>
		<guid isPermaLink="false">http://softwareblog.morlok.net/?p=370#comment-1465</guid>
		<description>Out of curiosity, what was the StdDev of your numbers (or did you just do a single run)?  I did a few tries, and the raw appendChild was ranging between 300 and 500ms.

My rough averages in Chrome 5.0.375.86 (Win32 on x64 hardware) are:

330
4400
3100
350</description>
		<content:encoded><![CDATA[<p>Out of curiosity, what was the StdDev of your numbers (or did you just do a single run)?  I did a few tries, and the raw appendChild was ranging between 300 and 500ms.</p>
<p>My rough averages in Chrome 5.0.375.86 (Win32 on x64 hardware) are:</p>
<p>330<br />
4400<br />
3100<br />
350</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kartik Sehgal</title>
		<link>http://softwareblog.morlok.net/2010/06/22/the-speed-of-jquery-append/comment-page-1/#comment-1462</link>
		<dc:creator>Kartik Sehgal</dc:creator>
		<pubDate>Wed, 23 Jun 2010 08:02:38 +0000</pubDate>
		<guid isPermaLink="false">http://softwareblog.morlok.net/?p=370#comment-1462</guid>
		<description>Thanks for sharing your research.

I have added one more option which is a little faster than string concatenation (by about 10%) and the difference becomes more apparent in slower browsers like IE.

var start = new Date();  
    var arrinners = [];  
    for(var i = 0; i &lt; 10000; i++) {  
        arrinners.push(&quot;&quot;);  
    }  
    $(&quot;#divcntnr&quot;).append(arrinners.join(&#039;&#039;)); 
    var end = new Date();  
    alert(&quot;jQuery from array: &quot; + (end.valueOf() - start.valueOf()));</description>
		<content:encoded><![CDATA[<p>Thanks for sharing your research.</p>
<p>I have added one more option which is a little faster than string concatenation (by about 10%) and the difference becomes more apparent in slower browsers like IE.</p>
<p>var start = new Date();<br />
    var arrinners = [];<br />
    for(var i = 0; i &lt; 10000; i++) {<br />
        arrinners.push(&quot;&#8221;);<br />
    }<br />
    $(&#8220;#divcntnr&#8221;).append(arrinners.join(&#8221;));<br />
    var end = new Date();<br />
    alert(&#8220;jQuery from array: &#8221; + (end.valueOf() &#8211; start.valueOf()));</p>
]]></content:encoded>
	</item>
</channel>
</rss>

