-- mothmenace <[EMAIL PROTECTED]> wrote
(on Tuesday, 25 November 2008, 03:27 AM -0800):
> Hi Keith & Carlos, first of all many thanks for replying! :)
> 
> Re: http://framework.zend.com/manual/en/performance.html
> Class loading - I tried commenting out all require_onces in the Zend lib,
> this definitely makes a difference if APC is not enabled, but AFAIK, APC
> with stat turned off means all require()d scripts are cached? Or am I wrong?

require_once statements are still a nominal performance hit even with
opcode caching (i.e., you'll see a *slight* improvement), though they
won't really affect memory usage.

> Internationalization - thankfully I don't have to use this on the site...
> phew
> View Rendering - will definitely look into this... Does this help mem usage
> aswell as serve time?

If you're heavily using partial() improperly (see the appendix for
details) or heavily using action(), then yes, it will have an impact on
memory usage, as each performs a fair bit of cloning, which creates more
objects in memory.

> Re: DB, I have FirePHP, the front page query log is : (9 @ 0.01551 sec). Too
> much db table loading sounds VERY much something I want to investigate - I
> have Xquery installed - I'm a newbie with it, I have webgrind
> (http://code.google.com/p/webgrind/) but this doesn't seem to show breakdown
> of memory usage, just execution times?

Use XDebug or Zend Debugger instead. However, the point is that you
should cache data sets that are frequently displayed, and also minimize
the amount of data pulled to only what you need. This can have a
tremendous impact on resources.

-- 
Matthew Weier O'Phinney
Software Architect       | [EMAIL PROTECTED]
Zend Framework           | http://framework.zend.com/

Reply via email to