-- Adds FileStoreI interface
-- Makes FileStore.java abstract superclass for FileStoreImpl (for Java)
and FileStoreJS (for JavaScript)
-- Passing all FeatureStoreJSTest TestNG tests
-- Passing all SequenceFeatureTest TestNG tests
-- About 10% faster for Java on TestNG tests.
-- full rendering in < 250 ms for JavaScript -- this is approximately 15
times faster than before I started this experiment.
Platform: timer mark 13.396 0.209 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 14.884 0.186 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 15.989 0.185 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 17.216 0.229 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 18.148 0.239 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 18.924 0.198 overviewrender 16000 pixels row:14 redraw:false
Platform: timer mark 21.827 0.233 overviewrender 16000 pixels row:14 redraw:false
import jalview.datamodel.SequenceFeature;
import jalview.datamodel.SequenceI;
import jalview.util.Comparison;
+import jalview.util.Platform;
import jalview.viewmodel.seqfeatures.FeatureRendererModel;
import java.awt.AlphaComposite;
findAllFeatures();
}
- @SuppressWarnings("unused")
- private List<SequenceFeature> overlaps = (/** @j2sNative true || */
- false ? null : new ArrayList<>());
+ private List<SequenceFeature> overlaps = (Platform.isJS()
+ ? new ArrayList<>()
+ : null);
/**
* Returns the sequence feature colour rendered at the given column position,