git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4408742
)
JAL-2954 more efficient SearchResults.markColumns
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 11:27:51 +0000
(12:27 +0100)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Mon, 23 Apr 2018 11:27:51 +0000
(12:27 +0100)
src/jalview/datamodel/SearchResults.java
patch
|
blob
|
history
diff --git
a/src/jalview/datamodel/SearchResults.java
b/src/jalview/datamodel/SearchResults.java
index
cde50e5
..
d1e3fcc
100755
(executable)
--- 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)