Isn't the $seen{ $rawData } = 1; line only needed if it's necessary to check for duplicates within each individual array, as opposed to only checking for duplicates between the two arrays? If checking for such duplicates within each array isn't necessary then I think that could be a small efficiency gain too because the lookup hash wouldn't keep growing as the loop iterated.
In reply to Re^2: Fastest way to merge (and de-dup) two large arrays?
by perldigious
in thread Fastest way to merge (and de-dup) two large arrays?
by technojosh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |