From 29134e3225e8fd45d5c2c3067e79779577997f51 Mon Sep 17 00:00:00 2001 From: Jim Procter Date: Tue, 1 Sep 2015 17:20:13 +0100 Subject: [PATCH] JAL-1853 make getVisibleSeqs more memory efficient by clipping sequences as the sequence vector is populated --- src/jalview/datamodel/AlignmentView.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/jalview/datamodel/AlignmentView.java b/src/jalview/datamodel/AlignmentView.java index 7ccd9cf..e089a11 100644 --- a/src/jalview/datamodel/AlignmentView.java +++ b/src/jalview/datamodel/AlignmentView.java @@ -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; } -- 1.7.10.2