Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: Fastest way to merge (and de-dup) two large arrays?

by technojosh (Priest)
on Aug 11, 2016 at 19:08 UTC ( [id://1169603]=note: print w/replies, xml ) Need Help??


in reply to Re: Fastest way to merge (and de-dup) two large arrays?
in thread Fastest way to merge (and de-dup) two large arrays?

Irrelevant

  • Comment on Re^2: Fastest way to merge (and de-dup) two large arrays?

Replies are listed 'Best First'.
Re^3: Fastest way to merge (and de-dup) two large arrays?
by perldigious (Priest) on Aug 11, 2016 at 19:13 UTC

    Then as Corion suggested hashing instead of smart matching is probably a great way to go for run time efficiency.

    I love it when things get difficult; after all, difficult pays the mortgage. - Dr. Keith Whites
    I hate it when things get difficult, so I'll just sell my house and rent cheap instead. - perldigious
Re^3: Fastest way to merge (and de-dup) two large arrays?
by Anonymous Monk on Aug 11, 2016 at 19:18 UTC

    On a *nix system, I would try writing both arrays out to the same file and run

    sort -u

    on the file. Might be faster, might not...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (4)
As of 2024-04-23 06:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found