JAL-1853 make getVisibleSeqs more memory efficient by clipping sequences as the seque...
authorJim Procter <jprocter@issues.jalview.org>
Tue, 1 Sep 2015 16:20:13 +0000 (17:20 +0100)
committerJim Procter <jprocter@issues.jalview.org>
Tue, 1 Sep 2015 16:20:13 +0000 (17:20 +0100)
src/jalview/datamodel/AlignmentView.java

index 7ccd9cf..e089a11 100644 (file)
@@ -474,12 +474,8 @@ public class AlignmentView
     for (int i = 0, j = sequences.length; i < j; i++)
     {
       aln[i] = sequences[i].getSeq(c);
-    }
-    // Remove hidden regions from sequence objects.
-    String seqs[] = getSequenceStrings(c);
-    for (int i = 0, j = aln.length; i < j; i++)
-    {
-      aln[i].setSequence(seqs[i]);
+      // Remove hidden regions from sequence
+      aln[i].setSequence(getASequenceString(c, i));
     }
     return aln;
   }