Skip to content

Commit

Permalink
optimize ExternalSorter to do be more likely to do an in-place sort
Browse files Browse the repository at this point in the history
  • Loading branch information
rbuels committed Jan 31, 2013
1 parent cd135c8 commit 6d7d819
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/perl5/Bio/JBrowse/ExternalSorter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,7 @@ sub finish {
}
$self->{readSegments} = $readSegments;
} else {
$self->{curList} =
[sort $compare @{$self->{curList}}];
@{$self->{curList}} = sort $compare @{$self->{curList}};
}
$self->{finished} = 1;
}
Expand Down

0 comments on commit 6d7d819

Please sign in to comment.