At the moment I am taking code from my views and putting it into helpers. Great for understanding and maintaining my views, but using helpers for the same code must take longer to load. Has anyone done any benchmark to see whether it takes microseconds or milliseconds extra to load. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
On Dec 27, 6:37 pm, MDM <don.m...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> At the moment I am taking code from my views and putting it into > helpers. Great for understanding and maintaining my views, but using > helpers for the same code must take longer to load. > Has anyone done any benchmark to see whether it takes microseconds or > milliseconds extra to load.Sounds like you''re in an ideal position to do so! Fred -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Unfortunately I have gone to far down the road of changing code to helpers. Only one more to go. I suppose I could always get an old copy and run it and see, but I am sure others must have done it before. It would take too much of my time at the mo. On Dec 27, 7:18 pm, Frederick Cheung <frederick.che...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> On Dec 27, 6:37 pm, MDM <don.m...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > At the moment I am taking code from my views and putting it into > > helpers. Great for understanding and maintaining my views, but using > > helpers for the same code must take longer to load. > > Has anyone done any benchmark to see whether it takes microseconds or > > milliseconds extra to load. > > Sounds like you''re in an ideal position to do so! > > Fred-- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Don Mapp wrote in post #970941:> Unfortunately I have gone to far down the road of changing code to > helpers. Only one more to go. > I suppose I could always get an old copy and run it and see, but I am > sure others must have done it before. > It would take too much of my time at the mo.Wouldn''t "Get an old copy..." just mean checkout out from version control a copy before you made all these changes? You did commit before you started restructuring things right? :-) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Don Mapp wrote in post #970929:> At the moment I am taking code from my views and putting it into > helpers. Great for understanding and maintaining my views, but using > helpers for the same code must take longer to load. > Has anyone done any benchmark to see whether it takes microseconds or > milliseconds extra to load.Until it starts slowing down your application unacceptably, the matter is only of academic interest. Best, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org Sent from my iPhone -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
It might be academic interest, but it is an interesting on, I feel. Sometimes we accept things too willingly. Others has said that cacheing http://guides.rubyonrails.org/caching_with_rails.html might be more important if speed is important. I am looking into it. On Dec 27, 11:12 pm, Marnen Laibow-Koser <li...-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Don Mapp wrote in post #970929: > > > At the moment I am taking code from my views and putting it into > > helpers. Great for understanding and maintaining my views, but using > > helpers for the same code must take longer to load. > > Has anyone done any benchmark to see whether it takes microseconds or > > milliseconds extra to load. > > Until it starts slowing down your application unacceptably, the matter > is only of academic interest. > > Best, > -- > Marnen Laibow-Koserhttp://www.marnen.org > mar...-sbuyVjPbboAdnm+yROfE0A@public.gmane.org > > Sent from my iPhone > > -- > Posted viahttp://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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.