Top 10 Ruby on Rails performance tips
http://www.antoniocangiano.com/articles/2007/02/10/top-10-ruby-on-rails-performance-tips
作者提出十個針對Ruby on Rails Performance的小技巧,有興趣的可以到該網頁參考。
- Optimize your Ruby code.
- Caching is good.
- Use your database to the full extent of the law.
- Finders are great but be careful.
- Group operations in a transaction.
- Control your controllers.
- Use HTML for you views.
- Logging.
- Patch the GC.(Garbage Collection)
- A final not, be “performance aware” and work on your code with these principle in mind.