Hey guys, I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/erubis/ Especially about how much faster it is than straight ERB. In their Ruby on Rails support docs: http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails They state that with a few added lines to your environment.rb it will replace ERB completely. I''m wondering if anyone has done this in an existing application and if there are any existing ERB area''s this might break. I''d also like to hear anyone''s experience with Erubis in general. Thanks. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
On Apr 3, 2007, at 8:49 AM, Marston A. wrote:> I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/ > erubis/ > Especially about how much faster it is than straight ERB. > > In their Ruby on Rails support docs: http://www.kuwata-lab.com/ > erubis/users-guide.05.html#topics-rails > They state that with a few added lines to your environment.rb it will > replace ERB completely. > > I''m wondering if anyone has done this in an existing application and > if there are any existing ERB area''s this might break. I''d also like > to hear anyone''s experience with Erubis in general. Thanks.I wrote up some notes on my experiences a couple of months ago: http://jystewart.net/process/2007/02/speeding-up-rails-with-erubis/ As I understand it the compatibility issues that were a problem earlier on are now resolved. I know I''ve not had any problems. James. -- James Stewart Play: http://james.anthropiccollective.org Work: http://jystewart.net/process/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
James, Thanks, I''ll check out your writeup. Overall this looks like a good drop-in solution (assuming those issues were fixed). Can''t beat a 3x speed increase! :-) On Apr 3, 3:19 pm, James Stewart <jystew...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Apr 3, 2007, at 8:49 AM, Marston A. wrote: > > > I''ve been hearing a lot about erubis:http://www.kuwata-lab.com/ > > erubis/ > > Especially about how much faster it is than straight ERB. > > > In their Ruby on Rails support docs:http://www.kuwata-lab.com/ > > erubis/users-guide.05.html#topics-rails > > They state that with a few added lines to your environment.rb it will > > replace ERB completely. > > > I''m wondering if anyone has done this in an existing application and > > if there are any existing ERB area''s this might break. I''d also like > > to hear anyone''s experience with Erubis in general. Thanks. > > I wrote up some notes on my experiences a couple of months ago: > > http://jystewart.net/process/2007/02/speeding-up-rails-with-erubis/ > > As I understand it the compatibility issues that were a problem > earlier on are now resolved. I know I''ve not had any problems. > > James. > > -- > James Stewart > Play:http://james.anthropiccollective.org > Work:http://jystewart.net/process/--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Curious about the proposed patch: How does moving object instantiation into a separate method increase speed? Unless I''m actually blind, the patch on this page (http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails) would do nothing for increasing speed. Is there something monkey patched in that take advantage of this change? Jason On 4/4/07, Marston A. <marston-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote:> > > James, > > Thanks, I''ll check out your writeup. Overall this looks like a good > drop-in solution (assuming those issues were fixed). Can''t beat a 3x > speed increase! :-) > > On Apr 3, 3:19 pm, James Stewart <jystew...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > On Apr 3, 2007, at 8:49 AM, Marston A. wrote: > > > > > I''ve been hearing a lot about erubis:http://www.kuwata-lab.com/ > > > erubis/ > > > Especially about how much faster it is than straight ERB. > > > > > In their Ruby on Rails support docs:http://www.kuwata-lab.com/ > > > erubis/users-guide.05.html#topics-rails > > > They state that with a few added lines to your environment.rb it will > > > replace ERB completely. > > > > > I''m wondering if anyone has done this in an existing application and > > > if there are any existing ERB area''s this might break. I''d also like > > > to hear anyone''s experience with Erubis in general. Thanks. > > > > I wrote up some notes on my experiences a couple of months ago: > > > > http://jystewart.net/process/2007/02/speeding-up-rails-with-erubis/ > > > > As I understand it the compatibility issues that were a problem > > earlier on are now resolved. I know I''ve not had any problems. > > > > James. > > > > -- > > James Stewart > > Play:http://james.anthropiccollective.org > > Work:http://jystewart.net/process/ > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
Just checked out erubis. The newest version does the patch for you (check out rails_helper.rb). On 4/4/07, Jason Roelofs <jameskilton-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > Curious about the proposed patch: How does moving object instantiation > into a separate method increase speed? Unless I''m actually blind, the patch > on this page (http://www.kuwata-lab.com/erubis/users-guide.05.html#topics-rails) > would do nothing for increasing speed. > > Is there something monkey patched in that take advantage of this change? > > Jason > > On 4/4/07, Marston A. <marston-8Qo2DTIsO68RmelmmXo44Q@public.gmane.org> wrote: > > > > > > James, > > > > Thanks, I''ll check out your writeup. Overall this looks like a good > > drop-in solution (assuming those issues were fixed). Can''t beat a 3x > > speed increase! :-) > > > > On Apr 3, 3:19 pm, James Stewart < jystew...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > On Apr 3, 2007, at 8:49 AM, Marston A. wrote: > > > > > > > I''ve been hearing a lot about erubis: http://www.kuwata-lab.com/ > > > > erubis/ > > > > Especially about how much faster it is than straight ERB. > > > > > > > In their Ruby on Rails support docs:http://www.kuwata-lab.com/ > > > > erubis/users-guide.05.html#topics-rails > > > > They state that with a few added lines to your environment.rb it > > will > > > > replace ERB completely. > > > > > > > I''m wondering if anyone has done this in an existing application and > > > > > > if there are any existing ERB area''s this might break. I''d also > > like > > > > to hear anyone''s experience with Erubis in general. Thanks. > > > > > > I wrote up some notes on my experiences a couple of months ago: > > > > > > http://jystewart.net/process/2007/02/speeding-up-rails-with-erubis/ > > > > > > As I understand it the compatibility issues that were a problem > > > earlier on are now resolved. I know I''ve not had any problems. > > > > > > James. > > > > > > -- > > > James Stewart > > > Play:http://james.anthropiccollective.org > > > Work:http://jystewart.net/process/ > > > > > > > > > > >--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---