<?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>FoxLing - 前端开发 &#187; array</title>
	<atom:link href="http://foxling.org/tag/array/feed/" rel="self" type="application/rss+xml" />
	<link>http://foxling.org</link>
	<description>我还在寻找方向</description>
	<lastBuildDate>Tue, 10 Apr 2012 16:48:41 +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>Javascript Array 性能测试</title>
		<link>http://foxling.org/js-ajax-dom/javascript-array-performance/</link>
		<comments>http://foxling.org/js-ajax-dom/javascript-array-performance/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 14:00:57 +0000</pubDate>
		<dc:creator>FoxLing</dc:creator>
				<category><![CDATA[JS/AJAX/DOM]]></category>
		<category><![CDATA[array]]></category>
		<category><![CDATA[push]]></category>
		<category><![CDATA[性能]]></category>

		<guid isPermaLink="false">http://foxling.eblhost.com/?p=500</guid>
		<description><![CDATA[array.push优化 原生的方法arr.push() 通过arr[arr.length]直接赋值 把方法二写成一个函数方便调用 测试结果请猛击这里： /examples/2010/03/array-performance/push.html 测试结果： 给arr[arr.length]直接赋值比push方法快 函数调用增加了开销，特别是在IE6和opera下表现明显 Chrome应该是做了优化，相差不大 待续(也许) =，=&#8230;&#8230;.]]></description>
			<content:encoded><![CDATA[<h3>array.push优化</h3>
<ul>
<li>原生的方法arr.push()</li>
<li>通过arr[arr.length]直接赋值</li>
<li>把方法二写成一个函数方便调用</li>
</ul>
<p>测试结果请猛击这里：<br />
<a href="/examples/2010/03/array-performance/push.html">/examples/2010/03/array-performance/push.html</a></p>
<p>测试结果：</p>
<ul>
<li>给arr[arr.length]直接赋值比push方法快</li>
<li>函数调用增加了开销，特别是在IE6和opera下表现明显</li>
<li>Chrome应该是做了优化，相差不大</li>
</ul>
<p>待续(也许) =，=&#8230;&#8230;.</p>
]]></content:encoded>
			<wfw:commentRss>http://foxling.org/js-ajax-dom/javascript-array-performance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

