From: gmungoc Date: Mon, 23 Apr 2018 11:27:51 +0000 (+0100) Subject: JAL-2954 more efficient SearchResults.markColumns X-Git-Tag: Release_2_10_4~33 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8a5259b87989c41a31e7e318801abdee3e211a58;p=jalview.git JAL-2954 more efficient SearchResults.markColumns --- diff --git a/src/jalview/datamodel/SearchResults.java b/src/jalview/datamodel/SearchResults.java index cde50e5..d1e3fcc 100755 --- a/src/jalview/datamodel/SearchResults.java +++ b/src/jalview/datamodel/SearchResults.java @@ -267,9 +267,12 @@ public class SearchResults implements SearchResultsI { int count = 0; BitSet mask = new BitSet(); + int startRes = sqcol.getStartRes(); + int endRes = sqcol.getEndRes(); + for (SequenceI s : sqcol.getSequences()) { - int[] cols = getResults(s, sqcol.getStartRes(), sqcol.getEndRes()); + int[] cols = getResults(s, startRes, endRes); if (cols != null) { for (int pair = 0; pair < cols.length; pair += 2)