<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	Comments on: Top 10 Ruby on Rails performance tips	</title>
	<atom:link href="https://programmingzen.com/top-10-ruby-on-rails-performance-tips/feed/" rel="self" type="application/rss+xml" />
	<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/</link>
	<description>Meditations on programming, startups, and technology</description>
	<lastBuildDate>Mon, 14 Jun 2010 21:26:15 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		By: Ricardo		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-210</link>

		<dc:creator><![CDATA[Ricardo]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-210</guid>

					<description><![CDATA[Rich what you said is hardly true. What do you do after your measured? This post helps answering that question.]]></description>
			<content:encoded><![CDATA[<p>Rich what you said is hardly true. What do you do after your measured? This post helps answering that question.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Patrick		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-204</link>

		<dc:creator><![CDATA[Patrick]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-204</guid>

					<description><![CDATA[Item #10 should be #1, as it is by far the most important tip. The worst case is premature optimization, concentrate on simple elegant code first. Once you see you need more speed, profile and benchmark your app to find the bottlenecks, only then should you start optimizing.]]></description>
			<content:encoded><![CDATA[<p>Item #10 should be #1, as it is by far the most important tip. The worst case is premature optimization, concentrate on simple elegant code first. Once you see you need more speed, profile and benchmark your app to find the bottlenecks, only then should you start optimizing.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Josh		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-205</link>

		<dc:creator><![CDATA[Josh]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-205</guid>

					<description><![CDATA[I disagree with Josh &amp; Evan. The writer&#039;s 10th point specify the intended usage for the other points. Good suggestions and some overreactions in an interesting thread!

Note: I&#039;m a different Josh]]></description>
			<content:encoded><![CDATA[<p>I disagree with Josh &#038; Evan. The writer&#8217;s 10th point specify the intended usage for the other points. Good suggestions and some overreactions in an interesting thread!</p>
<p>Note: I&#8217;m a different Josh</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: pireland		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-206</link>

		<dc:creator><![CDATA[pireland]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-206</guid>

					<description><![CDATA[I think Patrick brings up a good point.  If you are writing a guide for &quot;performance aware&quot; style of coding, your first point should be about keeping your code simple and elegant.

Optimizing code isn&#039;t the same thing as creating simple and elegant designs from the start.

Thanks Antonio for the tips!  While I do not 100% agree with them all, I appreciate the different perspective and experiences.  We should all realize that this is not meant to be a definitive guide, it is just one perspective.  How about starting with saying with what you agree with and not start out by attacking.  Keep it positive!

If you think you really do know more or can make a better guide, please write one and then post a link.]]></description>
			<content:encoded><![CDATA[<p>I think Patrick brings up a good point.  If you are writing a guide for &#8220;performance aware&#8221; style of coding, your first point should be about keeping your code simple and elegant.</p>
<p>Optimizing code isn&#8217;t the same thing as creating simple and elegant designs from the start.</p>
<p>Thanks Antonio for the tips!  While I do not 100% agree with them all, I appreciate the different perspective and experiences.  We should all realize that this is not meant to be a definitive guide, it is just one perspective.  How about starting with saying with what you agree with and not start out by attacking.  Keep it positive!</p>
<p>If you think you really do know more or can make a better guide, please write one and then post a link.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Bradley		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-207</link>

		<dc:creator><![CDATA[Bradley]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-207</guid>

					<description><![CDATA[@Mark Carey: &quot;Hardware is cheap&quot;

While this is somewhat a true statement I feel that it misses a vital point - &quot;money is money&quot;. You mention that the development and maintenance (through nice and elegant code) time saved  will justify the amount of money you will spend on new hardware. Yet, money is money and at the end of the day it makes sense (to the economists in all of use) to maximize the amount of money you put in your pocket (or minimize the amount you lose).

Thus, if I can save $10k on hardware by following a couple of Antonio&#039;s suggestions it would be a wise move as long as the associated development and maintenance costs (in coding time) of the code change are less then $10k.

My main point is that sometimes it is a good idea to keep the code elegant even if it means throwing more hardware at your project, while other times uglier optimized code can be good! As I always say, &quot;It&#039;s all about balance&quot; and each specific project has its own unique balancing act!

@Others

Finally, I think it is important to take all of Antonio&#039;s tips as tips and NOT rules.

@Antonio

Thanks for the tips Antonio!]]></description>
			<content:encoded><![CDATA[<p>@Mark Carey: &#8220;Hardware is cheap&#8221;</p>
<p>While this is somewhat a true statement I feel that it misses a vital point &#8211; &#8220;money is money&#8221;. You mention that the development and maintenance (through nice and elegant code) time saved  will justify the amount of money you will spend on new hardware. Yet, money is money and at the end of the day it makes sense (to the economists in all of use) to maximize the amount of money you put in your pocket (or minimize the amount you lose).</p>
<p>Thus, if I can save $10k on hardware by following a couple of Antonio&#8217;s suggestions it would be a wise move as long as the associated development and maintenance costs (in coding time) of the code change are less then $10k.</p>
<p>My main point is that sometimes it is a good idea to keep the code elegant even if it means throwing more hardware at your project, while other times uglier optimized code can be good! As I always say, &#8220;It&#8217;s all about balance&#8221; and each specific project has its own unique balancing act!</p>
<p>@Others</p>
<p>Finally, I think it is important to take all of Antonio&#8217;s tips as tips and NOT rules.</p>
<p>@Antonio</p>
<p>Thanks for the tips Antonio!</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rather not say		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-208</link>

		<dc:creator><![CDATA[Rather not say]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-208</guid>

					<description><![CDATA[I agree with Bradley regarding hardware, also i&#039;d like to add: who&#039;s gonna mantain the extra hardware you throw at your app?

I&#039;m a one man show (on my Django projects at night!) and when i build an app i have to do everything A-Z, i&#039;d rather not maintain an extra server or have to hire somebody to maintain a proper &quot;server farm&quot; if i can avoid it by optimizing code. Rails and similar technologies allow us to compete against bigger teams of .NET/Java programmers.

I have a fulltime job during the day and here where i work we use SQLServer basically as we would be using MySQL with MyISAM tables: no FK constraints (they slow things up!!), only stored procedures are allowed, nolock hints _everywhere_ which gives the risk of reading uncommitted transactions.

And i&#039;m talking of one of the top 50 most visited Internet sites and we certainly don&#039;t lack money or personnell  or talented people.

As i said, sometimes more machines are more headaches.]]></description>
			<content:encoded><![CDATA[<p>I agree with Bradley regarding hardware, also i&#8217;d like to add: who&#8217;s gonna mantain the extra hardware you throw at your app?</p>
<p>I&#8217;m a one man show (on my Django projects at night!) and when i build an app i have to do everything A-Z, i&#8217;d rather not maintain an extra server or have to hire somebody to maintain a proper &#8220;server farm&#8221; if i can avoid it by optimizing code. Rails and similar technologies allow us to compete against bigger teams of .NET/Java programmers.</p>
<p>I have a fulltime job during the day and here where i work we use SQLServer basically as we would be using MySQL with MyISAM tables: no FK constraints (they slow things up!!), only stored procedures are allowed, nolock hints _everywhere_ which gives the risk of reading uncommitted transactions.</p>
<p>And i&#8217;m talking of one of the top 50 most visited Internet sites and we certainly don&#8217;t lack money or personnell  or talented people.</p>
<p>As i said, sometimes more machines are more headaches.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Rich Collins		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-209</link>

		<dc:creator><![CDATA[Rich Collins]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-209</guid>

					<description><![CDATA[You can throw out this entire post and replace it by 3 things:

1. Measure
2. Measure
3. Measure]]></description>
			<content:encoded><![CDATA[<p>You can throw out this entire post and replace it by 3 things:</p>
<p>1. Measure<br />
2. Measure<br />
3. Measure</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Anders		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-213</link>

		<dc:creator><![CDATA[Anders]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-213</guid>

					<description><![CDATA[Well, what must also be mentioned is that when it comes to enterprise-size applications where optimizations of these sort are needed to handle the traffic, scalability is order of magnitudes more important than performance. So probably it is more worth the effort to make sure your application will benefit from an extra webserver, an extra database server, more memory or so on.
Often a overly optimized application is harder to scale linearly.]]></description>
			<content:encoded><![CDATA[<p>Well, what must also be mentioned is that when it comes to enterprise-size applications where optimizations of these sort are needed to handle the traffic, scalability is order of magnitudes more important than performance. So probably it is more worth the effort to make sure your application will benefit from an extra webserver, an extra database server, more memory or so on.<br />
Often a overly optimized application is harder to scale linearly.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Ruby on Rails Examples		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-215</link>

		<dc:creator><![CDATA[Ruby on Rails Examples]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-215</guid>

					<description><![CDATA[I would add:
Try to avoid URL_FOR to avoid url look   up.]]></description>
			<content:encoded><![CDATA[<p>I would add:<br />
Try to avoid URL_FOR to avoid url look   up.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: Roger Pack		</title>
		<link>https://programmingzen.com/top-10-ruby-on-rails-performance-tips/#comment-214</link>

		<dc:creator><![CDATA[Roger Pack]]></dc:creator>
		<pubDate>Mon, 30 Nov -0001 00:00:00 +0000</pubDate>
		<guid isPermaLink="false">http://72.52.169.158/~antonioc/2007/02/10/top-10-ruby-on-rails-performance-tips/#comment-214</guid>

					<description><![CDATA[You may also want to look at the information in

&lt;a href=&#039;http://www.infoq.com/articles/Rails-Performance&#039;&gt;http://www.infoq.com/articles/Rails-Performance&lt;/a&gt;
To help understand how to tweak rails performance :) It seems very good on reporting some real world situations on it.

-Roger]]></description>
			<content:encoded><![CDATA[<p>You may also want to look at the information in</p>
<p><a href='http://www.infoq.com/articles/Rails-Performance'>http://www.infoq.com/articles/Rails-Performance</a><br />
To help understand how to tweak rails performance 🙂 It seems very good on reporting some real world situations on it.</p>
<p>-Roger</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
