This page is very important. Using
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
set_include_path(
realpath(APPLICATION_PATH . '/../library')
. PATH_SEPARATOR . get_include_path()
);
 
instead of 
 
define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../application/'));
set_include_path(
APPLICATION_PATH . '/../library'
. PATH_SEPARATOR . get_include_path()
);
 
(please note that I just used the realpath function) decreased the loading time 
from ~3 sec to <2sec. 
 
I just dont understand: is autoloader faster that a lot of require_once?

--- On Thu, 4/9/09, Mon Zafra <mon...@gmail.com> wrote:

From: Mon Zafra <mon...@gmail.com>
Subject: Re: [fw-general] Zend Form Performance
To: fw-general@lists.zend.com
Date: Thursday, April 9, 2009, 4:47 PM


On Thu, Apr 9, 2009 at 6:06 PM, keith Pope <mute.p...@googlemail.com> wrote:




Also read the performace guide see if there is anything in there that
might help you :)
--
----------------------------------------------------------------------
[MuTe]
----------------------------------------------------------------------

Especially this part: 
http://framework.zend.com/manual/en/performance.classloading.html#performance.classloading.striprequires.sed
The speed gain is really noticeable after doing this.

Also, bytecode caching helps a lot.

   -- Mon






      

Reply via email to