From: James Gray Date: 2008-12-01T08:35:35+09:00 Subject: Re: Enumerable#select used to return actual values On Nov 30, 2008, at 4:34 PM, Robert Dober wrote: > On Sun, Nov 30, 2008 at 5:29 PM, James Gray > wrote: >> My opinion is that if inject() is really the biggest time sync in >> your code, >> you're in big trouble. ;) > Not really James, I have written same tiny little patches for Facets > to replace inject with the local variable- each technique because 30% > faster is important in a library. You may have a point there. I'm pretty sure Merb has done similar optimizations. I'm sticking to my guns though. inject() would be very, very low on the list of things I try to optimize away. I want to use Ruby as Ruby first and worry about speed second, if ever. James Edward Gray II