From 7d5dd096fc63d6a3eeab59e87453a098e3069f56 Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 3 Feb 2015 16:51:16 +0000 Subject: [PATCH] JAL-845 column mapping speed-up --- src/jalview/util/MappingUtils.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 } } } -- 1.7.10.2