<?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: AS3 arrays against linked lists performance benchmarking</title>
	<atom:link href="http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/</link>
	<description>Just another WordPress weblog</description>
	<pubDate>Sat, 02 Jun 2012 13:09:34 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/comment-page-1/#comment-9390</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 14 Aug 2010 03:06:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.open-design.be/?p=331#comment-9390</guid>
		<description>It really depends on what you are doing with the array. Linked lists are faster to iterate and therefore are faster to populate &amp; search. They are magnitudes faster at slicing or splicing. And they are just as fast at doing the simple push/pop stuff.

For 1M class instances:

arr init 459
LL init 387
for each 28
for i 16
LL each 9
arr find last 159 (10 times)
arr indexOf last 176 (10 times)
LL find last 65 (10 times)
arr remove mid 311 (1000 times)
arr remove front 875 (1000 times)
arr remove end 0 (1000 times)
LL remove 0 (1000 times)

Without seeing your code its difficult to see exactly what you are doing. If you are doing repeated array modification then use a linked list - and you\'ll get a speed boost across the board as well, as iterating is faster.</description>
		<content:encoded><![CDATA[<p>It really depends on what you are doing with the array. Linked lists are faster to iterate and therefore are faster to populate &amp; search. They are magnitudes faster at slicing or splicing. And they are just as fast at doing the simple push/pop stuff.</p>
<p>For 1M class instances:</p>
<p>arr init 459<br />
LL init 387<br />
for each 28<br />
for i 16<br />
LL each 9<br />
arr find last 159 (10 times)<br />
arr indexOf last 176 (10 times)<br />
LL find last 65 (10 times)<br />
arr remove mid 311 (1000 times)<br />
arr remove front 875 (1000 times)<br />
arr remove end 0 (1000 times)<br />
LL remove 0 (1000 times)</p>
<p>Without seeing your code its difficult to see exactly what you are doing. If you are doing repeated array modification then use a linked list - and you\&#8217;ll get a speed boost across the board as well, as iterating is faster.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: swingpants</title>
		<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/comment-page-1/#comment-7280</link>
		<dc:creator>swingpants</dc:creator>
		<pubDate>Fri, 23 Apr 2010 20:44:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.open-design.be/?p=331#comment-7280</guid>
		<description>HP Compaq 8510W
Intel Core 2 Duo CPU
T9500 @2.6GHz
2.59GHz 3GB RAM

#100000
-------
inserting new element (class instance, string passed to constructor) into array: 106 ms - results : 
inserting new element (string passed to constructor) into linked list: 154 ms - results : 
inserting new element (string passed to property) into linked list: 24 ms - results : 
accessing text (string, property) from array element (class instance): 7 ms - results : 
accessing text (string, property) from linked list: 7 ms - results : 
accessing text (string, function) from linked list: 8 ms - results : 
writing into 4 properties (string) from array element (class instance): 14 ms - results : 
reading from 4 properties (string) from array element (class instance): 15 ms - results : 
writing into 4 properties in linked list: 15 ms - results : 
reading from 4 properties in linked list: 13 ms - results : 
accessing text (string, property) from array element (class instance) for each loop: 227 ms - results 


#5000000
inserting new element (class instance, string passed to constructor) into array: 2463 ms - results : 
inserting new element (string passed to constructor) into linked list: 2742 ms - results : 
inserting new element (string passed to property) into linked list: 2626 ms - results : 
accessing text (string, property) from array element (class instance): 343 ms - results : 
accessing text (string, property) from linked list: 817 ms - results : 
accessing text (string, function) from linked list: 494 ms - results : 
writing into 4 properties (string) from array element (class instance): 526 ms - results : 
reading from 4 properties (string) from array element (class instance): 900 ms - results : 
writing into 4 properties in linked list: 732 ms - results : 
reading from 4 properties in linked list: 1055 ms - results : 
accessing text (string, property) from array element (class instance) for each loop: 7956 ms - results :</description>
		<content:encoded><![CDATA[<p>HP Compaq 8510W<br />
Intel Core 2 Duo CPU<br />
T9500 @2.6GHz<br />
2.59GHz 3GB RAM</p>
<p>#100000<br />
&#8212;&#8212;-<br />
inserting new element (class instance, string passed to constructor) into array: 106 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 154 ms - results :<br />
inserting new element (string passed to property) into linked list: 24 ms - results :<br />
accessing text (string, property) from array element (class instance): 7 ms - results :<br />
accessing text (string, property) from linked list: 7 ms - results :<br />
accessing text (string, function) from linked list: 8 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 14 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 15 ms - results :<br />
writing into 4 properties in linked list: 15 ms - results :<br />
reading from 4 properties in linked list: 13 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 227 ms - results </p>
<p>#5000000<br />
inserting new element (class instance, string passed to constructor) into array: 2463 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 2742 ms - results :<br />
inserting new element (string passed to property) into linked list: 2626 ms - results :<br />
accessing text (string, property) from array element (class instance): 343 ms - results :<br />
accessing text (string, property) from linked list: 817 ms - results :<br />
accessing text (string, function) from linked list: 494 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 526 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 900 ms - results :<br />
writing into 4 properties in linked list: 732 ms - results :<br />
reading from 4 properties in linked list: 1055 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 7956 ms - results :</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/comment-page-1/#comment-4804</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 07 Jan 2010 01:10:29 +0000</pubDate>
		<guid isPermaLink="false">http://blog.open-design.be/?p=331#comment-4804</guid>
		<description>&lt;strong&gt;Intel Core 2 Duo P8400 @ 2.26 GHz and 4GB DDR3 RAM - Win 7&lt;/strong&gt;

inserting new element (class instance, string passed to constructor) into array: 37 ms - results : 
inserting new element (string passed to constructor) into linked list: 24 ms - results : 
inserting new element (string passed to property) into linked list: 50 ms - results : 
accessing text (string, property) from array element (class instance): 7 ms - results : 
accessing text (string, property) from linked list: 11 ms - results : 
accessing text (string, function) from linked list: 11 ms - results : 
writing into 4 properties (string) from array element (class instance): 18 ms - results : 
reading from 4 properties (string) from array element (class instance): 22 ms - results : 
writing into 4 properties in linked list: 21 ms - results : 
reading from 4 properties in linked list: 25 ms - results : 
accessing text (string, property) from array element (class instance) for each loop: 227 ms</description>
		<content:encoded><![CDATA[<p><strong>Intel Core 2 Duo P8400 @ 2.26 GHz and 4GB DDR3 RAM - Win 7</strong></p>
<p>inserting new element (class instance, string passed to constructor) into array: 37 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 24 ms - results :<br />
inserting new element (string passed to property) into linked list: 50 ms - results :<br />
accessing text (string, property) from array element (class instance): 7 ms - results :<br />
accessing text (string, property) from linked list: 11 ms - results :<br />
accessing text (string, function) from linked list: 11 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 18 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 22 ms - results :<br />
writing into 4 properties in linked list: 21 ms - results :<br />
reading from 4 properties in linked list: 25 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 227 ms</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: menzoic</title>
		<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/comment-page-1/#comment-2886</link>
		<dc:creator>menzoic</dc:creator>
		<pubDate>Tue, 03 Nov 2009 23:06:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.open-design.be/?p=331#comment-2886</guid>
		<description>For my current project I need to be able to remove random items from random indexes in a large array. For this the use of LinkedList would be much more efficient than Arrays.</description>
		<content:encoded><![CDATA[<p>For my current project I need to be able to remove random items from random indexes in a large array. For this the use of LinkedList would be much more efficient than Arrays.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: intel core 2 6400</title>
		<link>http://blog.open-design.be/2009/01/04/as3-arrays-against-linked-lists-performance-benchmarking/comment-page-1/#comment-18</link>
		<dc:creator>intel core 2 6400</dc:creator>
		<pubDate>Wed, 07 Jan 2009 00:15:34 +0000</pubDate>
		<guid isPermaLink="false">http://blog.open-design.be/?p=331#comment-18</guid>
		<description>50000 :

inserting new element (class instance, string passed to constructor) into array: 20 ms - results :
inserting new element (string passed to constructor) into linked list: 28 ms - results :
inserting new element (string passed to property) into linked list: 23 ms - results :
accessing text (string, property) from array element (class instance): 1 ms - results :
accessing text (string, property) from linked list: 8 ms - results :
accessing text (string, function) from linked list: 7 ms - results :
writing into 4 properties (string) from array element (class instance): 14 ms - results :
reading from 4 properties (string) from array element (class instance): 14 ms - results :
writing into 4 properties in linked list: 2 ms - results :
reading from 4 properties in linked list: 2 ms - results :
accessing text (string, property) from array element (class instance) for each loop: 74 ms - results :


100000 :

inserting new element (class instance, string passed to constructor) into array: 57 ms - results :
inserting new element (string passed to constructor) into linked list: 55 ms - results :
inserting new element (string passed to property) into linked list: 51 ms - results :
accessing text (string, property) from array element (class instance): 7 ms - results :
accessing text (string, property) from linked list: 18 ms - results :
accessing text (string, function) from linked list: 12 ms - results :
writing into 4 properties (string) from array element (class instance): 22 ms - results :
reading from 4 properties (string) from array element (class instance): 5 ms - results :
writing into 4 properties in linked list: 4 ms - results :
reading from 4 properties in linked list: 5 ms - results :
accessing text (string, property) from array element (class instance) for each loop: 151 ms - results :


1000000 :

inserting new element (class instance, string passed to constructor) into array: 606 ms - results :
inserting new element (string passed to constructor) into linked list: 581 ms - results :
inserting new element (string passed to property) into linked list: 566 ms - results :
accessing text (string, property) from array element (class instance): 27 ms - results :
accessing text (string, property) from linked list: 24 ms - results :
accessing text (string, function) from linked list: 27 ms - results :
writing into 4 properties (string) from array element (class instance): 49 ms - results :
reading from 4 properties (string) from array element (class instance): 50 ms - results :
writing into 4 properties in linked list: 46 ms - results :
reading from 4 properties in linked list: 47 ms - results :
accessing text (string, property) from array element (class instance) for each loop: 1509 ms - results :


5000000 :

inserting new element (class instance, string passed to constructor) into array: 3935 ms - results :
inserting new element (string passed to constructor) into linked list: 2401 ms - results :
inserting new element (string passed to property) into linked list: 3518 ms - results :
accessing text (string, property) from array element (class instance): 421 ms - results :
accessing text (string, property) from linked list: 712 ms - results :
accessing text (string, function) from linked list: 713 ms - results :
writing into 4 properties (string) from array element (class instance): 1006 ms - results :
reading from 4 properties (string) from array element (class instance): 1398 ms - results :
writing into 4 properties in linked list: 1245 ms - results :
reading from 4 properties in linked list: 1606 ms - results :
accessing text (string, property) from array element (class instance) for each loop: 22817 ms - results :</description>
		<content:encoded><![CDATA[<p>50000 :</p>
<p>inserting new element (class instance, string passed to constructor) into array: 20 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 28 ms - results :<br />
inserting new element (string passed to property) into linked list: 23 ms - results :<br />
accessing text (string, property) from array element (class instance): 1 ms - results :<br />
accessing text (string, property) from linked list: 8 ms - results :<br />
accessing text (string, function) from linked list: 7 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 14 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 14 ms - results :<br />
writing into 4 properties in linked list: 2 ms - results :<br />
reading from 4 properties in linked list: 2 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 74 ms - results :</p>
<p>100000 :</p>
<p>inserting new element (class instance, string passed to constructor) into array: 57 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 55 ms - results :<br />
inserting new element (string passed to property) into linked list: 51 ms - results :<br />
accessing text (string, property) from array element (class instance): 7 ms - results :<br />
accessing text (string, property) from linked list: 18 ms - results :<br />
accessing text (string, function) from linked list: 12 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 22 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 5 ms - results :<br />
writing into 4 properties in linked list: 4 ms - results :<br />
reading from 4 properties in linked list: 5 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 151 ms - results :</p>
<p>1000000 :</p>
<p>inserting new element (class instance, string passed to constructor) into array: 606 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 581 ms - results :<br />
inserting new element (string passed to property) into linked list: 566 ms - results :<br />
accessing text (string, property) from array element (class instance): 27 ms - results :<br />
accessing text (string, property) from linked list: 24 ms - results :<br />
accessing text (string, function) from linked list: 27 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 49 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 50 ms - results :<br />
writing into 4 properties in linked list: 46 ms - results :<br />
reading from 4 properties in linked list: 47 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 1509 ms - results :</p>
<p>5000000 :</p>
<p>inserting new element (class instance, string passed to constructor) into array: 3935 ms - results :<br />
inserting new element (string passed to constructor) into linked list: 2401 ms - results :<br />
inserting new element (string passed to property) into linked list: 3518 ms - results :<br />
accessing text (string, property) from array element (class instance): 421 ms - results :<br />
accessing text (string, property) from linked list: 712 ms - results :<br />
accessing text (string, function) from linked list: 713 ms - results :<br />
writing into 4 properties (string) from array element (class instance): 1006 ms - results :<br />
reading from 4 properties (string) from array element (class instance): 1398 ms - results :<br />
writing into 4 properties in linked list: 1245 ms - results :<br />
reading from 4 properties in linked list: 1606 ms - results :<br />
accessing text (string, property) from array element (class instance) for each loop: 22817 ms - results :</p>
]]></content:encoded>
	</item>
</channel>
</rss>

