Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: how to speed up dupe checking of arrays

by mjscott2702 (Pilgrim)
on Jul 31, 2007 at 12:40 UTC ( #629819=note: print w/ replies, xml ) Need Help??


in reply to Re: how to speed up dupe checking of arrays
in thread how to speed up dupe checking of arrays

Update: the module at List::MoreUtils actually has a uniq function that does exactly what you need. This may be faster?


Comment on Re^2: how to speed up dupe checking of arrays
Re^3: how to speed up dupe checking of arrays
by ultibuzz (Monk) on Jul 31, 2007 at 13:21 UTC

    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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://629819]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (12)
As of 2014-12-19 21:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (92 votes), past polls