From: Harry Kakueki Date: 2011-09-12T12:09:55+09:00 Subject: Re: Not 2 maps On Mon, Sep 12, 2011 at 11:47 AM, Chris White wrote: > >> I didn't mention it, but I was trying not to iterate. But, I guess I >> need to if I want to get more speed. > > The question here is going to come down to why you're so worried about speed. What's your specific use case? The one you gave us seems to simplified to vouch for going the optimization route. Are you repeating this process thousands of times? With larger data sets? Computer processing power has evolved a lot over the years to the point to where the bar is set higher for when granular optimizations are required. If, however, such speed is critical to the application, you also have the route of writing a C level extension (assuming MRI here). > > Regards, > Chris White > Twitter: http://www.twitter.com/cwgem > > I just gave a very simple example. I want to use larger arrays millions of times. The speed I have now is acceptable. I was just trying to squeeze a little more out to see if I could. Thanks. Harry