|
|
|
|
|
by alberth
997 days ago
|
|
No one disputes that Ruby is slow. But you picking “mirrors” in your analogy makes it sounds like a premature optimization. The reason why perf isn’t typically an issue with Rails is the design pattern is to leverage heavy caching. The use of caching is to address the slowness of Ruby. |
|
- database queries
- template rendering
First one because round trip to db + running the query + allocating ORM result objects that otherwise get thrown away.
Second one because allocating a ton of strings that get join'd and thrown away.
> No one disputes that Ruby is slow.
I am, because the blanket statement doesn't make sense without context. Also that view is largely biased by the typical assumption that Ruby == Rails.