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?
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?
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 Z. [email protected]
which one is the most optimal?
–
*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
On May 16, 1:58 am, David Z. [email protected] 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
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
<[email protected]
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs