#6428: App::import() in bootstrap.php produces tons of is_dir / readdir calls.
------------------------+---------------------------------------------------
    Reporter:  c_t      |         Owner:            
        Type:  Bug      |        Status:  closed    
    Priority:  Medium   |     Milestone:  1.2.x.x   
   Component:  General  |       Version:  1.2 Final 
    Severity:  Normal   |    Resolution:  worksforme
    Keywords:           |   Php_version:  n/a       
Cake_version:  r8171    |  
------------------------+---------------------------------------------------
Comment (by jmut):

 {{{
 Hi folks, I guess original author lost interest after he fixed this issue
 for himself.
 I can totally see quite a big difference with this patch.

 #USING cakephp version:  1.2.5

 #Here the difference:
 with patch require_once            4  readdir()    calls
 no patch app import                1834 readdir() calls

 in my case..I simplified things really and difference is 1 second but
 still this is huge in long run.

 I think it has todo with extending include path.
 I have

 ini_set('include_path', ini_get('include_path') . PATH_SEPARATOR .
 dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'vendors');

 in app/config/bootstrap.php   where I store my 3rd party libs and stuff.

 From what I see in the xdebug trace cake is recursively checking all dirs
 from include path and doing this Folder->addPathElement  thingies...for
 cake/tests dirs as well...pretty much all.

 Please let me know if I can assist showing out the issue.
 Cheers.
 }}}

-- 
Ticket URL: <https://trac.cakephp.org/ticket/6428#comment:6>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to