From: James Edward Gray II Date: 2006-03-12T01:47:37+09:00 Subject: Re: Help me understand why the Ruby block is slower than wit On Mar 11, 2006, at 9:58 AM, Alan Burch wrote: > James Gray wrote: >> On Mar 10, 2006, at 4:57 PM, Alan Burch wrote: >> >>> I first saw >>> that the array class mixed in enumerable and that I could use the >>> to_a >>> call from there, but a quick check using -r profile showed that my >>> original call to split was a much quicker way to convert from a >>> string >>> to an array. >> >> This sounds like premature optimization. Remember, you start >> worrying about speed when the code gets too slow. Not before. >> >> James Edward Gray II > > James: > I'm going to have to respectfully disagree. Well, I'm pretty darn sure you are in the minority on that one: ;) http://www.google.com/search?q=%22premature+optimization%22 James Edward Gray II