#6143: App::import should be optimized when importing plugin controllers
----------------------------+-----------------------------------------------
Reporter: AbhimanyuG | Type: Optimization
Status: new | Priority: Medium
Milestone: 1.2.x.x | Component: General
Version: 1.2 Final | Severity: Normal
Keywords: app::import | Php_version: PHP 5
Cake_version: 1.2.1.8004 |
----------------------------+-----------------------------------------------
Consider a setup with 7-8 plugin directories, and dispatcher triggers:
{{{
App::import('Controller', $pluginPath . $controller);
}}}
And if it starts __find() it takes 5-7 seconds to just find the
controller. The reason is because of bad search algorithm in App::__find()
for this very scenario. See this code snippet in __find()
{{{
$Folder =& new Folder();
$directories = $Folder->tree($path, false, 'dir');
$this->__paths[$path] = $directories;
pr($directories);
}}}
Output of pr($directories) is 194 directories, which means Cake is
actually taking time out to recursively fetch that structure. So, kindly
accept this ticket as an optimization requirement. In this setup I'm using
like 8 plugins. And the problem has been observed only in WinXP setup, on
Linux it works good.
I'm not sure if there's any workaround for this already. Also see attached
image.
--
Ticket URL: <https://trac.cakephp.org/ticket/6143>
CakePHP : The Rapid Development Framework for PHP <https://trac.cakephp.org/>
Cake is a rapid development framework for PHP which uses commonly known design
patterns like ActiveRecord, Association Data Mapping, Front Controller and MVC.
Our primary goal is to provide a structured framework that enables PHP users at
all levels to rapidly develop robust web applications, without any loss to
flexibility.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"tickets cakephp" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/tickets-cakephp?hl=en
-~----------~----~----~----~------~----~------~--~---