rails performance optimization

rails performance optimization
1.Algorithmic improvements always beat code tweaks
2.As a general rule, maintainability beats performance
3.Only optimize what matters
4.Measure twice, cut once

I think second one may conflict link_to helper methods
somebody said replace link_to with real <a href=""></a> will help performance, but from maintainability opinion I think that's not good idea.

cos once you change your route map rules you need change all the text url links

I know erb is slow, maybe you can try erubis which is announced as 10 percent faster then erb

http://www.kuwata-lab.com/erubis/

你可能感兴趣的:(Rails,performance,idea)