Hi,

I profiled my application, and noticed with the help of xdebug and webgrind
that my includes are very slow.
Like for example ~450 ms was needed for an include of a .phtml file !

I wonder if I am doing something wrong with include paths, if I'm not wrong,
ZF uses it to find the files.

This is my confiuration :

[...]
set_include_path(realpath(dirname(__FILE__) . '/../library'));
require_once 'Zend/Loader/Autoloader.php';
$autoloader = Zend_Loader_Autoloader::getInstance();
$autoloader->registerNamespace(array('My_', 'MyZend_'));
$resourceLoader  = new Zend_Application_Module_Autoloader(array(
        'namespace' => 'My',
        'basePath'  => './application/'
));
$resourceLoader
        ->addResourceType('constants', 'constants/', 'Constant')
        ->addResourceType('exceptions', 'exceptions/', 'Exception')
        ->addResourceType('plugins', 'helpers/Plugin/', 'Plugin')
        ->addResourceType('helpers', 'helpers/Common/', 'Helper')
        ->addResourceType('viewHelpers', 'helpers/ViewHelper/', 'View_Helper')
        ->addResourceType('actionHelpers', 'helpers/ActionHelper/',
'Action_Helper');
[...]


Can anyone help me out with this ?

Thank you very much !!
-- 
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/includes-are-slow-wrong-set-include-path-tp2736921p2736921.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to