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
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