From: Daniel Carrera Date: 2003-02-21T00:51:42+09:00 Subject: Re: optimization question On Thu, Feb 20, 2003 at 03:57:03PM +0900, Bulat Ziganshin wrote: > Hello Daniel, > > Thursday, February 20, 2003, 9:13:16 AM, you wrote: > DC> I think that sorting is about as expensive as hashing. > DC> Here is a quick benchmark for 5,000 iterations: > > i think that really expensive is interpreting the code. > if you think about C code, you can try to squeeze second > block in my program into Array#uniqc method. imvho, > it is the simplest way to speed up your program - just > because other variants will require much more efforts > to code Yeah. I'll think about writing an Array#uniqc method this afternoon. It might turn out to be easier than the one I wrote yesterday. -- Daniel Carrera Graduate Teaching Assistant. Math Dept. University of Maryland. (301) 405-5137