<html><head></head><body bgcolor="#FFFFFF"><div>Forgot to reply to list for posterity.<br><br><div>--</div>(Sent from phone; please excuse brevity.)</div><div><br>Begin forwarded message:<br><br></div><blockquote type="cite"><div><b>From:</b> Sam Livingston-Gray <<a href="mailto:geeksam@gmail.com">geeksam@gmail.com</a>><br><b>Date:</b> November 23, 2012 8:44:29 AM PST<br><b>To:</b> Jonathon Horsman <<a href="mailto:jonathon@arctickiwi.com">jonathon@arctickiwi.com</a>><br><b>Subject:</b> <b>Re: [LRUG] Recommendations for Ruby & Rails optimisation resources</b><br><br></div></blockquote><div></div><blockquote type="cite"><div><div>Without metrics, "optimisation"=="random guesses". I highly recommend NewRelic; you can install the gem and run it locally on your app in dev mode for free. It's great for finding low-hanging fruit. (They're a bunch of really nice people, too.)<br><br><div>--</div>(Sent from phone; please excuse brevity.)</div><div><br>On Nov 23, 2012, at 4:14 AM, Jonathon Horsman <<a href="mailto:jonathon@arctickiwi.com">jonathon@arctickiwi.com</a>> wrote:<br><br></div><div></div><blockquote type="cite"><div>Hi<div><br></div><div>I need to improve the performance of a particular Rails action.</div><div><br></div><div>I'm using fragment caching which is helping a lot, but the initial cache generation is still in the order of 5 seconds.</div>
<div><br></div><div>So I'm looking into the garbage collector, this article provided some hints but no suggestions: <a href="http://merbist.com/2010/07/29/object-allocation-why-you-should-care/">http://merbist.com/2010/07/29/object-allocation-why-you-should-care/</a></div>
<div><br></div><div>e.g. how do I reduce the amount of object allocation in Rails? Should I be using the select() method in ActiveRecord to reduce initialized fields?</div><div>Is it better to use select_all and work directly with hashes?</div>
<div><br></div><div>Is HAML markedly slower than ERB? The view generation seems to take the majority of time.</div><div><br></div><div>I'd really appreciate any tips or links to articles.</div><div><br></div><div>Many thanks<br clear="all">
<div><br></div>-- <br>Jonathon Horsman<br>Director<div>Arctic Kiwi<br>Mobile: 079 42366038<br>Web: <a style="color:rgb(0,153,0)" href="http://www.arctickiwi.com" target="_blank">http://www.arctickiwi.com</a><div>Twitter: <a style="color:rgb(0,153,0)" href="http://www.twitter.com/jhorsman" target="_blank">@jhorsman</a><br>
<img src="http://www.arctickiwi.com/images/arctic-kiwi-logo-email.gif"><br></div></div><br>
</div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Chat mailing list</span><br><span><a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a></span><br><span><a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a></span><br></div></blockquote></div></blockquote></body></html>