<?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: .className vs. .style</title>
	<atom:link href="http://webkit.org/blog/13/classname-vs-style/feed/" rel="self" type="application/rss+xml" />
	<link>http://webkit.org/blog/13/classname-vs-style/</link>
	<description>All about WebKit development</description>
	<lastBuildDate>Sat, 21 Nov 2009 23:00:28 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: surfsurf</title>
		<link>http://webkit.org/blog/13/classname-vs-style/comment-page-1/#comment-96</link>
		<dc:creator>surfsurf</dc:creator>
		<pubDate>Sat, 13 Aug 2005 00:28:14 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=13#comment-96</guid>
		<description>What do you say to the following performance tip from http://www.devnewz.com/devnewz-3-20030514OptimizingJavaScriptforExecutionSpeed.html ? Is he right?


NodeLists are lists of elements from object properties like .childNodes and methods like getElementsByTagName(). Because these objects are live (updated immediately when the underlying document changes), they are memory intensive and can take up many CPU cycles. If you need a NodeList for only a moment, it is faster to index directly into the list. Browsers are optimized to access node lists this way. So instead of this:


nl = document.getElementsByTagName(&quot;P&quot;);
for (var i = 0; i </description>
		<content:encoded><![CDATA[<p>What do you say to the following performance tip from <a href="http://www.devnewz.com/devnewz-3-20030514OptimizingJavaScriptforExecutionSpeed.html" rel="nofollow">http://www.devnewz.com/devnewz-3-20030514OptimizingJavaScriptforExecutionSpeed.html</a> ? Is he right?</p>
<p>NodeLists are lists of elements from object properties like .childNodes and methods like getElementsByTagName(). Because these objects are live (updated immediately when the underlying document changes), they are memory intensive and can take up many CPU cycles. If you need a NodeList for only a moment, it is faster to index directly into the list. Browsers are optimized to access node lists this way. So instead of this:</p>
<p>nl = document.getElementsByTagName(&#8221;P&#8221;);<br />
for (var i = 0; i</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dave</title>
		<link>http://webkit.org/blog/13/classname-vs-style/comment-page-1/#comment-46</link>
		<dc:creator>dave</dc:creator>
		<pubDate>Mon, 01 Aug 2005 22:20:25 +0000</pubDate>
		<guid isPermaLink="false">http://webkit.opendarwin.org/blog/?p=13#comment-46</guid>
		<description>Just a query about your approach to bug fixing. When you find a bug like the one you&#039;ve documented, do you go looking for the same class of bug in the rest of the code (I don&#039;t mean to sound rude, just curious about the process).</description>
		<content:encoded><![CDATA[<p>Just a query about your approach to bug fixing. When you find a bug like the one you&#8217;ve documented, do you go looking for the same class of bug in the rest of the code (I don&#8217;t mean to sound rude, just curious about the process).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
