Because the cache is invalidated every few minutes, the wait is annoying, and the CPU is either idle or running 100%. If the load can be spread out more, responsiveness will improve. I have profiled the requests, cut the response time in half, and it is still annoying slow, several seconds. I need a 10x increase and have only found several improvements totaling a 2x increase. Short of changing the underlying engine from Ruby 1.8 to Ruby 1.9 or jRuby or going to a template engine written in a compiled language, I don't see any way to increase the responsiveness short of pre-filling the cache where feasible.
Jeffrey Quoting E. Litwin <elit...@rocketmail.com>: > If the index page is served from the cache 99% of the time (or more if > it truly is static), why are you so concerned about pre-rendering it? > > You should profile your application to determine the other areas where > you should focus your energy on. > > On Nov 27, 5:36 pm, "Jeffrey L. Taylor" <r...@abluz.dyndns.org> wrote: > > Oh, and rendering, i.e. generating the HTML, on the server side, not > > rendering > > HTML in the browser. > > > > Jeffrey > > > > Quoting pepe <p...@betterrpg.com>: > > > > > That doesn't make any sense. How is the browser supposed to know what > > > you are going to do before a request is made? > > > > > On Nov 25, 7:32 pm, "Jeffrey L. Taylor" <r...@abluz.dyndns.org> wrote: > > > > Quoting Peter De Berdt <peter.de.be...@pandora.be>: > > > > > > > On 25 Nov 2009, at 23:39, Jeffrey L. Taylor wrote: > > > > > > > > I would like to pre-render some commonly accessed pages to speed up > > > > > > > > > > > > response. > > > > > > Is there any way to do this outside of a controller? > > > > > > > If you are talking about implementing caching, yes, you > > > > > can:http://guides.rubyonrails.org/caching_with_rails.html > > > > > > Not quite, I am talking about rendering before the first request, so > > > > the page > > > > is already in the cache. Pre-emptive caching? Whatever. > > -- > > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-t...@googlegroups.com. > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-t...@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-talk+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.