I found through the log file that the render of the rhtml template would take too much time if there exists ruby code in the rhtml files.In many cases,these ruby code are tied with these rhtml files closely and can not be decoupled from that,therefore,i have a question that,is there exist some way to improve the rendering speed of rhtml when some ruby codes are included? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, what is too long and what are you trying to do? Could you provide information about your deployment OS and any oher relevant information? Thanks, -Conrad On 12/18/06, Freddy <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I found through the log file that the render of the rhtml template would > take too much time if there exists ruby code in the rhtml files.In many > cases,these ruby code are tied with these rhtml files closely and can > not be decoupled from that,therefore,i have a question that,is there > exist some way to improve the rendering speed of rhtml when some ruby > codes are included? > > -- > Posted via http://www.ruby-forum.com/. > > > >--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Freddy, Without knowing much about your situation and code this might help: http://www.rubyinside.com/advent2006/2-erubis.html http://www.kuwata-lab.com/erubis/ Hope it does help! AEM On 12/18/06, Freddy <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > I found through the log file that the render of the rhtml template would > take too much time if there exists ruby code in the rhtml files.In many > cases,these ruby code are tied with these rhtml files closely and can > not be decoupled from that,therefore,i have a question that,is there > exist some way to improve the rendering speed of rhtml when some ruby > codes are included? > > -- > Posted via http://www.ruby-forum.com/. > > > >-- Adrian Esteban Madrid --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Conrad Taylor wrote:> Hi, what is too long and what are you trying to do? Could you provide > information about your deployment OS and any oher relevant > information? > > Thanks, > > -ConradFor example,if there exists any code that involves the db operation,even it is a very simple sentence, the rendering time will increase for about fify times of the rhtml that does not include such ruby code. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Freddy wrote:> I found through the log file that the render of the rhtml template would > take too much time if there exists ruby code in the rhtml files.In many > cases,these ruby code are tied with these rhtml files closely and can > not be decoupled from that,therefore,i have a question that,is there > exist some way to improve the rendering speed of rhtml when some ruby > codes are included?Have you tried erubis? http://www.kuwata-lab.com/erubis/ -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sam Kapadia wrote:> > Have you tried erubis? > > http://www.kuwata-lab.com/erubis/yeah,it is much faster,i have tested and it costs only half time of the original. But that means i have to change all the suffix of rhtml file into erubis, it seems that it erubis has not been accepted by most rails application''s deployment? -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Freddy wrote:> Sam Kapadia wrote: >> >> Have you tried erubis? >> >> http://www.kuwata-lab.com/erubis/ > > yeah,it is much faster,i have tested and it costs only half time of the > original. But that means i have to change all the suffix of rhtml file > into erubis, it seems that it erubis has not been accepted by most rails > application''s deployment?Nope its not accepted AFAIK. But if everyone here uses it .. it will be accepted. Thats how open source project works. If speed is a concern then you outta go with Eurubis. And its not that big of change and it has a nice caching mechanism and it started to get popularity i.e. various blogs etc.. -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Freddy, How long are the rendering times you''re seeing? If your app was performing ok, and you had to look at numbers in the log files to see a problem, is there really a problem? Pete Yandell On 19/12/2006, at 5:37 PM, Freddy wrote:> > I found through the log file that the render of the rhtml template > would > take too much time if there exists ruby code in the rhtml files.In > many > cases,these ruby code are tied with these rhtml files closely and can > not be decoupled from that,therefore,i have a question that,is there > exist some way to improve the rendering speed of rhtml when some ruby > codes are included? > > -- > Posted via http://www.ruby-forum.com/. > > >--~--~---------~--~----~------------~-------~--~----~ 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-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---