I am also always on the lookout for a replacement for requestAction in this context. A tip to improve speed is: Don't use requestAction with an action that renders. An action that returns data or simply echoes some string is faster.
On your recorded time: You are timing that in Windows aren't you? I don't like to speak ill of Microsoft (well actually...), but there has been a few threads here recently about people noticing very slow performance when running a development setup in Windows. I have no idea why it would be that slow. It does seem to affect Cake 1.2 more than other frameworks or even Cake 1.1 from what I read. Like this thread from last week: http://groups.google.com/group/cake-php/browse_thread/thread/7458faf11365ea7b/ It would be a great service to the community if one of you guys running Windows figured out what causes it. Are you running WAMP, XAMPP, IIS, "native" Apache or something else entirely? /Martin On Nov 12, 2:07 pm, Pizgin <[EMAIL PROTECTED]> wrote: > Hi! > > This is action renderPerformance: > > function renderPerformance() > { > $time_start = getmicrotime(); > > for ($i=0;$i<50;$i++) > { > $this->requestAction('/menus/action1',array('return')); > } > > $time_end = getmicrotime(); > $time = $time_end - $time_start; > print "Time: $time sec.<br/>"; > > return null; > > } > > Action MenusController::action1 - empty, view file action1.ctp - > empty. > > OpenBrowser at url "127.0.0.1/test/renderPerformance" > > Output: > Time: 11.1430029869 sec. > > AMD Athlon(tm) 64 X2 Dual Core Processor 4400+, 1GB RAM > > 11 seconds at drawing a 50 blank items. Duty. How can carry out > another collaboration between plug-ins? Thank you. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
