<?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: Filling an NSMutableArray</title>
	<atom:link href="http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/feed/" rel="self" type="application/rss+xml" />
	<link>http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/</link>
	<description>Coding under the close supervision of cats</description>
	<lastBuildDate>Fri, 09 Jul 2010 18:22:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Jeff</title>
		<link>http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/comment-page-1/#comment-19</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Wed, 18 Oct 2006 20:08:23 +0000</pubDate>
		<guid isPermaLink="false">http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/#comment-19</guid>
		<description>When I add the same object repeatedly, it makes it up to 536 million before dying.  An array of that many 4-byte pointers would take up about 2GB; I have no idea what other overhead an NSArray has.  The system and the app will also consume memory.  Perhaps it&#039;s reaching 4GB, though I&#039;ve deliberately turned off everything else before the test.  Anyway, &lt;code&gt;NSNotFound&lt;/code&gt; is still safe.</description>
		<content:encoded><![CDATA[<p>When I add the same object repeatedly, it makes it up to 536 million before dying.  An array of that many 4-byte pointers would take up about 2GB; I have no idea what other overhead an NSArray has.  The system and the app will also consume memory.  Perhaps it&#8217;s reaching 4GB, though I&#8217;ve deliberately turned off everything else before the test.  Anyway, <code>NSNotFound</code> is still safe.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeffstyr</title>
		<link>http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/comment-page-1/#comment-17</link>
		<dc:creator>Jeffstyr</dc:creator>
		<pubDate>Wed, 18 Oct 2006 08:43:30 +0000</pubDate>
		<guid isPermaLink="false">http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/#comment-17</guid>
		<description>The amount of physical RAM you have shouldn&#039;t matter--it&#039;s the size of your virtual address space which does. For a 32-bit process, the limit is 4GB--you&#039;re probably running into that limit (unless you run out of swap space first). You should be able to get to a higher number if you just add the same NSNumber instance to your array over-and-over, rather than creating a new one each time through the loop--those are probably eating up the majority of your memory.</description>
		<content:encoded><![CDATA[<p>The amount of physical RAM you have shouldn&#8217;t matter&#8211;it&#8217;s the size of your virtual address space which does. For a 32-bit process, the limit is 4GB&#8211;you&#8217;re probably running into that limit (unless you run out of swap space first). You should be able to get to a higher number if you just add the same NSNumber instance to your array over-and-over, rather than creating a new one each time through the loop&#8211;those are probably eating up the majority of your memory.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeff</title>
		<link>http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/comment-page-1/#comment-7</link>
		<dc:creator>Jeff</dc:creator>
		<pubDate>Tue, 10 Oct 2006 22:56:35 +0000</pubDate>
		<guid isPermaLink="false">http://lapcatsoftware.com/blog/2006/10/10/filling-an-nsmutablearray/#comment-7</guid>
		<description>I&#039;m only guessing that a Mac Pro couldn&#039;t handle it either. I&#039;d be interested in hearing about real tests.</description>
		<content:encoded><![CDATA[<p>I&#8217;m only guessing that a Mac Pro couldn&#8217;t handle it either. I&#8217;d be interested in hearing about real tests.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
