Minor optimization

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@4817 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2010-12-10 18:56:35 +00:00
parent 56433ebf6b
commit 491a599b59
1 changed files with 2 additions and 4 deletions

View File

@ -449,9 +449,8 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
}
private void abortCleanForCurrentInterval() {
// merge the two sets for emission
readsNotToClean.addAll(readsToClean.getReads());
emit(readsNotToClean);
emit(readsToClean.getReads());
readsToClean.clear();
readsNotToClean.clear();
currentInterval = intervals.hasNext() ? intervals.next() : null;
@ -471,9 +470,8 @@ public class IndelRealigner extends ReadWalker<Integer, Integer> {
clean(readsToClean);
knownIndelsToTry.clear();
// merge the two sets for emission
readsNotToClean.addAll(readsToClean.getReads());
emit(readsNotToClean);
emit(readsToClean.getReads());
readsToClean.clear();
readsNotToClean.clear();