Hi,
I'm working on a rails project and I experienced that the response to ajax calls are slow in both development and production. Response comes around 8 sec. I observed also that i have some actions that has a response time around 80ms. The difference in the two acitions is that the slower was rendered using render :update do |page| ... end The fast one was rendered using rjs template. Somebody had similar experiences? Another problem is that i cant use rjs in any time, because there are actions which only gives a html/text response and not javascript. for example i'm using render :inline, render :text, render :nothing. These methods cannot be turned into rjs I think.
Ok, sorry for not providing code. 1st version: http://pastie.org/749000 This takes 8second. 2nd version: http://pastie.org/748997 This takes 80millisecond.
Also I have to mention that i'm using the community engine plugin, and this problem happens in the production machine. In development both version takes around 4 sec.