From: Gary Wright Date: 2011-01-20T03:46:20+09:00 Subject: Re: Improving performance of hash math On Jan 19, 2011, at 12:23 AM, dblock wrote: >> Switch to using #each with an explicit accumulator variable instead of #inject. > > Looks about twice as slow. Either way, about 36% of the time is spent > in Hash.each. > Surprising since most of the 'inject solutions' that show up on this list are slower than using #each. Can you post some sample data? Gary Wright