Premature optimization is the root of all evil

web

That's a quote from Dare Obasanjo at Microsoft who worked on the MSN Spaces project.

Dare's point is that even the big boys have trouble scaling their applications, MSN Spaces grew much faster than Microsoft had anticipated:

I never expected that we'd grow to be three times as big (as livejournal) and three times as active within a year. We've had our growing pains and it's definitely been surprising at times finding out which parts of the service are getting the most use and thus needed the most optimizations.

He also points out that Google has the same problems, Google Analytics was unusably slow when it first launched and the stats are still at least a day old before you can view them.

Dare wrote this peice in response to 37Signal's recent article: Don't Scale: 99.999% uptime is for Wal-Mart - also a good read.

So follow best practices, write code that is easy to maintain, don't go out of your way to optimize anything while during development. Once you have actual users you can get a better idea of what areas need optimization, and spend your time on more important things.

I also recently found a post in my archive called Over Tweaking on this subject that is worth checking out.



Related Entries

4 people found this page useful, what do you think?

Trackbacks

Trackback Address: 509/D62C6CB92DA52AF4B90D31E9A79F275B

Comments

On 12/08/2005 at 6:03:59 PM EST Raymond Camden wrote:
1
This isn't a useful comment, but I just wanted to add a mega-ditto.

On 12/09/2005 at 4:08:08 PM EST Shelby Davis wrote:
2
http://www.brainyquote.com/quotes/quotes/d/donaldknut181625.html It's actually a Knuth quote.

On 12/09/2005 at 4:44:45 PM EST Pete Freitag wrote:
3
Ah, thanks for pointing that out Shelby.

On 12/09/2005 at 11:34:47 PM EST Scott Fitchet wrote:
4
I thought case sensitivity was the root of all evil!

On 02/12/2006 at 9:52:45 AM EST Eq wrote:
5
No, that's a very old quote from Donald Knuth, and the Microsoft guy just repeated it.

On 02/12/2006 at 9:53:22 AM EST Eq wrote:
6
Oops, didn't see the previous comment to the same effect. Heh. You can delete these two, then :)

On 04/04/2006 at 9:53:08 AM EDT Geoff S. wrote:
7
I'm just feeling a bit nit-picky today, but the original quote if from C. A. R. Hoare; Don Knuth just popularized it. The full quote is: "We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil"

http://www.faqs.org/docs/artu/ch01s06.html#id2878810 http://en.wikipedia.org/wiki/Performance_tuning

Cheers,

Geoff S. http://geoff-s.net/

On 10/08/2006 at 11:22:45 AM EDT Andy Gimblett wrote:
8
Of course, since Hoarse is British, not American, the quote should in fact be "premature optimisation is the root of all evil"; Knuth, of course, translated into American when quoting Hoare - hence the z. ;-)

Post a Comment




  



Spell Checker by Foundeo

Recent Entries



foundeo


did you hack my cf?