in reply to Re^2: Best method to diff very large array efficiently
in thread Best method to diff very large array efficiently
I undef @arr_2_hash{@arr_2}; in sub hash_grep(), noting it was faster than the OP's original.
Changing this @diff3{@arr_1} = @arr_1; to @diff3{@arr_1} = () makes some difference.
No--it makes a huge difference and it, by far, blows everything else away. Will make that change in a new sub and re-benchmark. Glad you mentioned it!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Best method to diff very large array efficiently
by LanX (Saint) on Nov 25, 2013 at 22:51 UTC | |
by Kenosis (Priest) on Nov 25, 2013 at 23:00 UTC |
In Section
Seekers of Perl Wisdom