From c131770ae5b4886cf3dfe7779e72c9e9e0c73e42 Mon Sep 17 00:00:00 2001 From: hansonr Date: Sun, 4 Aug 2019 11:04:39 -0500 Subject: [PATCH] JAL-3383 JAL-3253-applet possibly a bit faster as a static reference to the Function. --- src/jalview/datamodel/features/FeatureStoreImpl.java | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/jalview/datamodel/features/FeatureStoreImpl.java b/src/jalview/datamodel/features/FeatureStoreImpl.java index d1d2670..a41633a 100644 --- a/src/jalview/datamodel/features/FeatureStoreImpl.java +++ b/src/jalview/datamodel/features/FeatureStoreImpl.java @@ -238,6 +238,13 @@ public class FeatureStoreImpl extends FeatureStore return findFirstBeginStatic(list, pos); } + /** + * Possibly a bit faster using a static method. + * + * @param list + * @param pos + * @return + */ private static int findFirstBeginStatic(List list, long pos) { @@ -250,6 +257,13 @@ public class FeatureStoreImpl extends FeatureStore return findFirstEndStatic(list, pos); } + /** + * Possibly a bit faster using a static method. + * + * @param list + * @param pos + * @return + */ private static int findFirstEndStatic(List list, long pos) { -- 1.7.10.2