That is quite a big difference. Thanks a lot for taking the time to share this information. I wonder why the insane amount of calls to is_dir.
On Fri, Jan 30, 2009 at 3:28 PM, Loic Didelot <[email protected]> wrote: > > Hi, > I didnt get any feedback but I tried to debug a little further by > comparing to my other cake applications, disabling code, looking at > xdebug etc... > > I have one class with a few functions that help me with common things, > short function with not special code. If I use > "App::import('Vendor','tools');" in app_controller.php everything is > fine. However, if I use App::import() in bootstrap.php or config.php my > application becomes 6 times slower and the number of times is_dir() is > called increases quite a lot. > > Number of times a function is called with App::import('Vendor','tools'); > in bootstrap.php: > is_dir() -> 1481 > file_exists -> 377 > > > Number of times a function is called with App::import('Vendor','tools'); > in app_controller.php: > is_dir() -> 28 > file_exists() -> 14 > > > Maybe this helps someone... > > Best regards, > Loic. > > > On Wed, 2009-01-28 at 09:22 -0800, mixvoip wrote: > > Hello, > > I just updated to the recent cake1.2 and noticed that my pages load 5 > > times slower. Rendering time is over 2 seconds. So I installed xdebug > > to check a little what is happening and I noticed that the function > > is_dir() uses 1/3 of all process time and is called over 1400 times > > per request. After some feedback from the IRC channel I set debug to 0 > > and enabled caching which was previously disabled with > > "Configure::write('Cache.disable', true);" > > > > "tmp/cache/persistent" is now no longer empty but is_dir is still > > called over 1400 times per request. > > > > ls -l tmp/cache/persistent: > > cake_core_core_paths cake_core_default_en_us cake_core_dir_map > > cake_core_file_map > > > > > > Does anyone else have this problem? > > > > Best regards, > > Loic. > > > > > > -- > Loïc DIDELOT > MIXvoip S.a. > Tel: +352 20 3333 20 > Fax: +352 20 3333 90 > [email protected] > http://www.mixvoip.com > > > > > -- Rogelio Nodal --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "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/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---
