<?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: Array</title>
	<atom:link href="http://ridiculousfish.com/blog/archives/2005/12/23/array/feed/" rel="self" type="application/rss+xml" />
	<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/</link>
	<description>serious code</description>
	<lastBuildDate>Sat, 31 Jul 2010 18:07:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Mitch</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-1007</link>
		<dc:creator>Mitch</dc:creator>
		<pubDate>Sun, 25 Apr 2010 20:03:35 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-1007</guid>
		<description>&quot;switching data structure implementations around 30,000 elements&quot; - shouldn&#039;t this be 300,000 ?</description>
		<content:encoded><![CDATA[<p>&#8220;switching data structure implementations around 30,000 elements&#8221; &#8211; shouldn&#8217;t this be 300,000 ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-414</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 21 Aug 2006 11:35:33 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-414</guid>
		<description>dont understand your &#039;number&#039; thing, but .... still your articles are very good!</description>
		<content:encoded><![CDATA[<p>dont understand your &#8216;number&#8217; thing, but &#8230;. still your articles are very good!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: david</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-415</link>
		<dc:creator>david</dc:creator>
		<pubDate>Mon, 21 Aug 2006 11:34:00 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-415</guid>
		<description>Finally, i understood... thank you - very good article</description>
		<content:encoded><![CDATA[<p>Finally, i understood&#8230; thank you &#8211; very good article</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peteris Krumins</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-413</link>
		<dc:creator>Peteris Krumins</dc:creator>
		<pubDate>Sun, 23 Jul 2006 09:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-413</guid>
		<description>Just to inform you, classes:
 o  hash_set
 o  hash_map
 o  hash_multiset
 o  hash_multimap

are not part of the C++ standard but are CGI extensions.</description>
		<content:encoded><![CDATA[<p>Just to inform you, classes:<br />
 o  hash_set<br />
 o  hash_map<br />
 o  hash_multiset<br />
 o  hash_multimap</p>
<p>are not part of the C++ standard but are CGI extensions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Raid Array &#187;  SuperArray - focused microarray, PCR, siRNA and Gene Function Assay</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-412</link>
		<dc:creator>Raid Array &#187;  SuperArray - focused microarray, PCR, siRNA and Gene Function Assay</dc:creator>
		<pubDate>Mon, 22 May 2006 15:01:24 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-412</guid>
		<description>[...] ex of -1 indicates the last element of the array, -2 is the next to last    ridiculous_fish    Blog Archive    ArrayCopyOnWriteArraySet is a set that implements copy-on-write and is ba [...]</description>
		<content:encoded><![CDATA[<p>[...] ex of -1 indicates the last element of the array, -2 is the next to last    ridiculous_fish    Blog Archive    ArrayCopyOnWriteArraySet is a set that implements copy-on-write and is ba [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Zac&#8217;s Weblog  &#187; Blog Archive   &#187; To CD or not to CD?</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-411</link>
		<dc:creator>Zac&#8217;s Weblog  &#187; Blog Archive   &#187; To CD or not to CD?</dc:creator>
		<pubDate>Fri, 12 May 2006 18:30:22 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-411</guid>
		<description>[...]  it back. You can see a movie of it working here. Because of Ridiculous Fish&#8217;s great article on reverse engineering Apple&#8217;s NSArray implementation, I also think that  [...]</description>
		<content:encoded><![CDATA[<p>[...]  it back. You can see a movie of it working here. Because of Ridiculous Fish&#8217;s great article on reverse engineering Apple&#8217;s NSArray implementation, I also think that  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Patrick Stein</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-410</link>
		<dc:creator>Patrick Stein</dc:creator>
		<pubDate>Sun, 26 Mar 2006 20:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-410</guid>
		<description>Hmmmm timing for the plain array seems a bit weird. A plain array that backward walks grows - isn&#039;t it just a

avalue = anarray[offset] ?

so in real just an addition of addresses:

*(anarray+offset) ???

with offset just decreasing ? If you mean that walking through the array takes longer I do undrestand that, but how could that get faster with other data structures ?

Enligthen me  - Patrick - aka Jolly</description>
		<content:encoded><![CDATA[<p>Hmmmm timing for the plain array seems a bit weird. A plain array that backward walks grows &#8211; isn&#8217;t it just a</p>
<p>avalue = anarray[offset] ?</p>
<p>so in real just an addition of addresses:</p>
<p>*(anarray+offset) ???</p>
<p>with offset just decreasing ? If you mean that walking through the array takes longer I do undrestand that, but how could that get faster with other data structures ?</p>
<p>Enligthen me  &#8211; Patrick &#8211; aka Jolly</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Berlin</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-409</link>
		<dc:creator>Daniel Berlin</dc:creator>
		<pubDate>Mon, 16 Jan 2006 23:13:47 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-409</guid>
		<description>So, what is the memory behavior of CFArray like (ie memory usage)?

The only thing it seems truly better at is deletes, and the only way i can imagine it could remain flat like that for random deletions is to not do the actual deletes, but just mark them to be deleted.  This would explain the walk timings as well.</description>
		<content:encoded><![CDATA[<p>So, what is the memory behavior of CFArray like (ie memory usage)?</p>
<p>The only thing it seems truly better at is deletes, and the only way i can imagine it could remain flat like that for random deletions is to not do the actual deletes, but just mark them to be deleted.  This would explain the walk timings as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rosyna</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-408</link>
		<dc:creator>Rosyna</dc:creator>
		<pubDate>Mon, 16 Jan 2006 21:33:04 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-408</guid>
		<description>Have you thought about doing the same benchmark with NSArray that you did with CFArray? I mean, just to see the overhead that Objective-C adds.</description>
		<content:encoded><![CDATA[<p>Have you thought about doing the same benchmark with NSArray that you did with CFArray? I mean, just to see the overhead that Objective-C adds.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: nicolas</title>
		<link>http://ridiculousfish.com/blog/archives/2005/12/23/array/comment-page-1/#comment-407</link>
		<dc:creator>nicolas</dc:creator>
		<pubDate>Fri, 30 Dec 2005 10:27:22 +0000</pubDate>
		<guid isPermaLink="false">http://ridiculousfish.com/blog/?p=27#comment-407</guid>
		<description>thanks zac for your reply !
I&#039;d like to add one observation.
It may seem obvious but it can&#039;t hurt to repeat it :
The biggest optimization I&#039;ve made on an app that used sorted arrays was : limiting the amount of times I sorted the damn arrays !
I spent some time trying to optimize the sorts or the sorted insertions (binary insert etc). This gained very little cycles.... But calling the sort functions every 100ms instead of every 25ms made a HUGE difference ^_^</description>
		<content:encoded><![CDATA[<p>thanks zac for your reply !<br />
I&#8217;d like to add one observation.<br />
It may seem obvious but it can&#8217;t hurt to repeat it :<br />
The biggest optimization I&#8217;ve made on an app that used sorted arrays was : limiting the amount of times I sorted the damn arrays !<br />
I spent some time trying to optimize the sorts or the sorted insertions (binary insert etc). This gained very little cycles&#8230;. But calling the sort functions every 100ms instead of every 25ms made a HUGE difference ^_^</p>
]]></content:encoded>
	</item>
</channel>
</rss>
