Hey Which options more faster for a rails app to access-- 5 actions in 1 controller or 5 controllers with 1 action in each which one is the most optimal? -- 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.
I think that the most optimal option is the second, 5 controllers with 1 action in each. Think, one controller > one action one controller > one action > one fail Greetings 2010/5/16 David Zhu <dzwestwindsor45-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>> Hey > > Which options more faster for a rails app to access-- > > 5 actions in 1 controller > > or > > 5 controllers with 1 action in each > > which one is the most optimal? > > -- > 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org<rubyonrails-talk%2Bunsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org> > . > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- *Mi Twitter http://twitter.com/distriker *Blog personal http://distriker.co.cc *Fundador del proyecto IMGBeta *Twitter oficial de IMGBeta http://twitter.com/imgbeta *Webmaster del proyecto http://hispaturismo.com *Webmaster de http://rincon-blogger.blogspot.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.
On May 16, 1:58 am, David Zhu <dzwestwindso...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hey > > Which options more faster for a rails app to access-- > > 5 actions in 1 controller > > or > > 5 controllers with 1 action in each >I doubt makes any noticeable difference. Depending on the complexity of the associated routes that might make a small difference, but this really sounds like premature optimization to me. If you really must know, benchmark it. Fred> which one is the most optimal? > > -- > 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 athttp://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-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.
I think, make code more readable, understanndable, and your api more near to rest. Because when u thinking about 0.00034 ms, u make stupid decision Sent from my iPhone On 16.05.2010, at 4:04, Iván Hernández Cazorla <ivanhcelrinconelmejor@gmail.c om> wrote:> I think that the most optimal option is the second, 5 controllers > with 1 action in each. > > Think, one controller > one action > one controller > one action > one fail > > Greetings > > 2010/5/16 David Zhu <dzwestwindsor45-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> > Hey > > Which options more faster for a rails app to access-- > > 5 actions in 1 controller > > or > > 5 controllers with 1 action in each > > which one is the most optimal? > > -- > 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 > . > > > > > -- > *Mi Twitter http://twitter.com/distriker > *Blog personal http://distriker.co.cc > *Fundador del proyecto IMGBeta > *Twitter oficial de IMGBeta http://twitter.com/imgbeta > *Webmaster del proyecto http://hispaturismo.com > *Webmaster de http://rincon-blogger.blogspot.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 > .-- 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.