in reply to how to speed up dupe checking of arrays

The reduce method available at List::Util may make this faster. I haven't benchmarked it (getting some weird benchmark results on my Win32/Cygwin install), but these calls are supposed to be REALLY fast.
  • Comment on Re: how to speed up dupe checking of arrays

Replies are listed 'Best First'.
Re^2: how to speed up dupe checking of arrays
by mjscott2702 (Pilgrim) on Jul 31, 2007 at 12:40 UTC
    Update: the module at List::MoreUtils actually has a uniq function that does exactly what you need. This may be faster?

      List::More-Utils is faster as my try but slower then the dupe checking while in while loop.
      problem might be the pass trough each element of the array wich becomee the main time consuming element.
      as i see it dosnt matte rmuch waht u use when u have kinda small arrays, but when u have arrays with several million elements, all the saved milliseconds count ;)

      kd ultibuzz