18 agosto 2014

Speed up Rails, Speed up Your Code

I had just finished watching Tenderlove's (Aaron Patterson) talk called "Speed up Rails, Speed up Your Code". He talks about caching approach, ActiveRecord and the improvements "they" made to speed up rails over time. I really recommend people to watch it. Here are some tips/thoughts he gives in the end of the talk:

- Cache Invariants 
    "Any time you find a calculation you're doing over and over again, and it always ends up being the same, you should cache it"
- Eliminate Objects 
    "No code is faster than no code"
- Limit Types 
    "Limit the types of objects that your function handles"
- Rails 4.2 will be the fastest ever! o/ 

 Anyways, check his talk at Confreaks.