By default, List::Compare sorts the lists its methods returns.
You can get a small speed boost if you pass the Unsorted option to the constructor.
    $lcu = List::Compare->new('-u', \@Llist, \@Rlist);
or
    $lcu = List::Compare->new('--unsorted', \@Llist, \@Rlist);
    @intersection = $lcu->get_intersection;
    # @intersection will not be sorted
| Previous | Back to start of show | Next | 
| Slide: 13 unsorted | © 2004-18 James E. Keenan |