<?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: Test Results on Memory Usage of Zend Framework and Doctrine with APC</title>
	<atom:link href="http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/</link>
	<description>A periodical blog of experiences from the angle of an autodidactic, paranoid and narcissistic web developer...</description>
	<lastBuildDate>Thu, 04 Mar 2010 21:21:10 +1100</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<meta xmlns="http://www.w3.org/1999/xhtml" name="robots" content="noindex,follow" />
	<item>
		<title>By: rvdavid</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-1021</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Fri, 22 Jan 2010 04:38:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-1021</guid>
		<description>I can just imagine... seems scary, but have you tried it at all? 

Zend Framework has a CLI interface so it can&#039;t be that bad. No experience whatsoever with Zend Cli though. 

So yes, I&#039;m just asking you to try it out without me knowing how well or badly it works.  :P</description>
		<content:encoded><![CDATA[<p>I can just imagine&#8230; seems scary, but have you tried it at all? </p>
<p>Zend Framework has a CLI interface so it can&#8217;t be that bad. No experience whatsoever with Zend Cli though. </p>
<p>So yes, I&#8217;m just asking you to try it out without me knowing how well or badly it works.  <img src='http://www.rvdavid.net/wp-includes/images/smilies/icon_razz.gif' alt=':P' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdavid</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-1019</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Fri, 22 Jan 2010 04:36:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-1019</guid>
		<description>LoL - you&#039;re welcome *flares cape*</description>
		<content:encoded><![CDATA[<p>LoL &#8211; you&#8217;re welcome *flares cape*</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdavid</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-959</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Wed, 20 Jan 2010 22:55:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-959</guid>
		<description>I can see where you&#039;re coming from, but this post is not on prematurely optimising anything; or rewriting; or doing anything different aside from installing APC and configuring APC (which would take about 5 - 10 minutes) and seeing the improvements noted above.

Why the test result from StackOverflow was ringing alarm bells was not due to the sheer size of it, but the amount of memory it took to process such a simple task for a single user.

Thank you for taking the time in making a case against premature optimisation though. You certainly are passionate about it and with good reason. :) 

Keep in touch buddy.</description>
		<content:encoded><![CDATA[<p>I can see where you&#8217;re coming from, but this post is not on prematurely optimising anything; or rewriting; or doing anything different aside from installing APC and configuring APC (which would take about 5 &#8211; 10 minutes) and seeing the improvements noted above.</p>
<p>Why the test result from StackOverflow was ringing alarm bells was not due to the sheer size of it, but the amount of memory it took to process such a simple task for a single user.</p>
<p>Thank you for taking the time in making a case against premature optimisation though. You certainly are passionate about it and with good reason. <img src='http://www.rvdavid.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  </p>
<p>Keep in touch buddy.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brandon P</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-958</link>
		<dc:creator>Brandon P</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:46:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-958</guid>
		<description>I used to be an optimization junkie until I realized that renting hardware is much less expensive than writing/optimizing software.

My choice to go with ZF + Doctrine was because it shortened development time, created a more managable &amp; scalable application PLUS it makes programming ellegant &amp; fun.  In the beginning, I also realized the impact on the memory usage of my application.
        
The amount of time I used to spend saving a few hundred milliseconds (or MB ram) here and there crippled development, resulting in a days of work with nothing to show.  My application was eventually had the capability to handle 100,000 visitors a days... but I have yet to reach 1/1,000 of that.
             
Any suggestion that I could give is &quot;DONT PREMATURELY OPTIMIZE&quot;.  Your site doesn&#039;t need to handle 10,000 concurrent users when you have 10.

On your test results:

Your test results yielded a 4MB increase. That&#039;s roughly the size of 1 MP3 file. This *shouldn&#039;t* be shocking, especially now when hardward is really cheap.  If 4GB of memory usage is considered outrageous, you must think Firefox is the antichrist :)

Our dedi-server has isntalled 4GB of ram with the capability to expand up to 16GB. If our application even started to test the limits of the server, which would be a better solution?:

- Increase server memory to 8GB (Cost: $40/month, Time: 2 minutes)
- Optimize &amp; rewrite code (Cost: ???, Time: ???)

If ANY of us are lucky to work on a project like Facebook, Twitter, etc then this conversation completely changes.  But, since 99% of us won&#039;t ... don&#039;t let a little memory usage deter you from using a great package like ZF + Doctrine to build your next web app.</description>
		<content:encoded><![CDATA[<p>I used to be an optimization junkie until I realized that renting hardware is much less expensive than writing/optimizing software.</p>
<p>My choice to go with ZF + Doctrine was because it shortened development time, created a more managable &amp; scalable application PLUS it makes programming ellegant &amp; fun.  In the beginning, I also realized the impact on the memory usage of my application.</p>
<p>The amount of time I used to spend saving a few hundred milliseconds (or MB ram) here and there crippled development, resulting in a days of work with nothing to show.  My application was eventually had the capability to handle 100,000 visitors a days&#8230; but I have yet to reach 1/1,000 of that.</p>
<p>Any suggestion that I could give is &#8220;DONT PREMATURELY OPTIMIZE&#8221;.  Your site doesn&#8217;t need to handle 10,000 concurrent users when you have 10.</p>
<p>On your test results:</p>
<p>Your test results yielded a 4MB increase. That&#8217;s roughly the size of 1 MP3 file. This *shouldn&#8217;t* be shocking, especially now when hardward is really cheap.  If 4GB of memory usage is considered outrageous, you must think Firefox is the antichrist <img src='http://www.rvdavid.net/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Our dedi-server has isntalled 4GB of ram with the capability to expand up to 16GB. If our application even started to test the limits of the server, which would be a better solution?:</p>
<p>- Increase server memory to 8GB (Cost: $40/month, Time: 2 minutes)<br />
- Optimize &amp; rewrite code (Cost: ???, Time: ???)</p>
<p>If ANY of us are lucky to work on a project like Facebook, Twitter, etc then this conversation completely changes.  But, since 99% of us won&#8217;t &#8230; don&#8217;t let a little memory usage deter you from using a great package like ZF + Doctrine to build your next web app.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: desfrenes</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-956</link>
		<dc:creator>desfrenes</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:54:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-956</guid>
		<description>Add this with long-lived CLI scripts and php cycle-reference and there you got my nightmare.</description>
		<content:encoded><![CDATA[<p>Add this with long-lived CLI scripts and php cycle-reference and there you got my nightmare.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-953</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:11:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-953</guid>
		<description>Thank ya Captain Obvious!</description>
		<content:encoded><![CDATA[<p>Thank ya Captain Obvious!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: rvdavid</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-924</link>
		<dc:creator>rvdavid</dc:creator>
		<pubDate>Tue, 19 Jan 2010 19:06:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-924</guid>
		<description>I&#039;ve read about compiling, but haven&#039;t actually tried it out. Will look into it in the coming weeks - thanks man!</description>
		<content:encoded><![CDATA[<p>I&#8217;ve read about compiling, but haven&#8217;t actually tried it out. Will look into it in the coming weeks &#8211; thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abcphp.com</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-912</link>
		<dc:creator>abcphp.com</dc:creator>
		<pubDate>Tue, 19 Jan 2010 01:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-912</guid>
		<description>&lt;strong&gt;Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid...&lt;/strong&gt;

After investigating a recommendation to use Doctrine by a fellow blogger, Brian at Real of Zod, I have decided to run with Doctrine as my Domain Model in Zend Framework projects. The thing is, if I’m going to commit to this, I need to know that applica...</description>
		<content:encoded><![CDATA[<p><strong>Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid&#8230;</strong></p>
<p>After investigating a recommendation to use Doctrine by a fellow blogger, Brian at Real of Zod, I have decided to run with Doctrine as my Domain Model in Zend Framework projects. The thing is, if I’m going to commit to this, I need to know that applica&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid: A Web Developer’s Blog -HackIX</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-911</link>
		<dc:creator>Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid: A Web Developer’s Blog -HackIX</dc:creator>
		<pubDate>Tue, 19 Jan 2010 00:20:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-911</guid>
		<description>[...] via Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid: A Web Developer&#039;s B.... [...]</description>
		<content:encoded><![CDATA[<p>[...] via Test Results on Memory Usage of Zend Framework and Doctrine with APC » rvdavid: A Web Developer&#39;s B&#8230;. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dev head</title>
		<link>http://www.rvdavid.net/test-results-on-memory-usage-of-zend-framework-and-doctrine-with-apc/#comment-910</link>
		<dc:creator>dev head</dc:creator>
		<pubDate>Mon, 18 Jan 2010 23:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.rvdavid.net/?p=163#comment-910</guid>
		<description>Hi There, 

I&#039;ve been working with zend and doctrine together for the past two years and of course I ran into the same issues. 

Doctrine is a memory monster, somethings that help. 
- APC ( like you said ) 

- Increased memory ( of course )

- Use PHP 5.3+

- Compile Doctrine
-- doctrine can be compiled down to a single file. this helps reduce the overhead of the numerous includes. Documentation on that is on their site. 

- only fetch objects if you need to modify data, otherwise fetch the array. 

- use the query method and limit your query to only the models, relations and fields you need to have access to. ( writing a helper method to pass a config array can be a bit more handy then manually writing these out each time ) 

Best of luck to ya.</description>
		<content:encoded><![CDATA[<p>Hi There, </p>
<p>I&#8217;ve been working with zend and doctrine together for the past two years and of course I ran into the same issues. </p>
<p>Doctrine is a memory monster, somethings that help.<br />
- APC ( like you said ) </p>
<p>- Increased memory ( of course )</p>
<p>- Use PHP 5.3+</p>
<p>- Compile Doctrine<br />
&#8211; doctrine can be compiled down to a single file. this helps reduce the overhead of the numerous includes. Documentation on that is on their site. </p>
<p>- only fetch objects if you need to modify data, otherwise fetch the array. </p>
<p>- use the query method and limit your query to only the models, relations and fields you need to have access to. ( writing a helper method to pass a config array can be a bit more handy then manually writing these out each time ) </p>
<p>Best of luck to ya.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
