From: gmungoc Date: Tue, 3 Feb 2015 16:51:16 +0000 (+0000) Subject: JAL-845 column mapping speed-up X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=7d5dd096fc63d6a3eeab59e87453a098e3069f56;p=jalview.git JAL-845 column mapping speed-up --- diff --git a/src/jalview/util/MappingUtils.java b/src/jalview/util/MappingUtils.java index 953bac1..0b931a2 100644 --- a/src/jalview/util/MappingUtils.java +++ b/src/jalview/util/MappingUtils.java @@ -447,7 +447,8 @@ public final class MappingUtils SequenceI mappedSeq = m.getSequence(); /* - * Locate the aligned sequence whose dataset is mappedSeq. + * Locate the aligned sequence whose dataset is mappedSeq. TODO a + * datamodel that can do this efficiently. */ for (SequenceI toSeq : mapTo.getAlignment().getSequences()) { @@ -459,6 +460,8 @@ public final class MappingUtils mappedToMax = Math.max(mappedToMax, mappedEndCol); // System.out.println(fromSeq.getName() + " mapped to cols " // + mappedStartCol + ":" + mappedEndCol); + break; + // TODO remove break if we ever want to map one to many sequences } } }