Skip to content

Commit

Permalink
performance improvement for StandardBlocker
Browse files Browse the repository at this point in the history
  • Loading branch information
olehmberg committed Jun 23, 2017
1 parent 283ddbf commit 46dc45a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ public Pair<BlockedType, Processable<Correspondence<CorrespondenceType, Matchabl
for(int j = i+1; j < list.size(); j++) {
Pair<BlockedType, Processable<Correspondence<CorrespondenceType, Matchable>>> p2 = list.get(j);

Processable<Correspondence<CorrespondenceType, Matchable>> causes = new ProcessableCollection<>(p1.getSecond()).append(p2.getSecond()).distinct();
Processable<Correspondence<CorrespondenceType, Matchable>> causes = new ProcessableCollection<>(p1.getSecond()).append(p2.getSecond());

int[] pairIds = new int[] { p1.getFirst().getDataSourceIdentifier(), p2.getFirst().getDataSourceIdentifier() };
Arrays.sort(pairIds);
Expand All @@ -229,7 +229,7 @@ public Pair<BlockedType, Processable<Correspondence<CorrespondenceType, Matchabl
Arrays.sort(causeIds);

return Arrays.equals(pairIds, causeIds);
});
}).distinct();

collector.next(new Correspondence<>(p1.getFirst(), p2.getFirst(), 1.0, causes));
}
Expand Down

0 comments on commit 46dc45a

Please sign in to comment.