From: Bulat Ziganshin Date: 2003-02-20T15:57:03+09:00 Subject: Re: optimization question 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 -- Best regards, Bulat mailto:bulatz@integ.ru