groovy-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sun...@apache.org
Subject groovy git commit: Adjust the min and default value of dfa cache threshold
Date Tue, 22 Aug 2017 00:50:07 GMT
Repository: groovy
Updated Branches:
  refs/heads/GROOVY_2_6_X e325e6fe0 -> b29848835


Adjust the min and default value of dfa cache threshold

(cherry picked from commit f9680f8)


Project: http://git-wip-us.apache.org/repos/asf/groovy/repo
Commit: http://git-wip-us.apache.org/repos/asf/groovy/commit/b2984883
Tree: http://git-wip-us.apache.org/repos/asf/groovy/tree/b2984883
Diff: http://git-wip-us.apache.org/repos/asf/groovy/diff/b2984883

Branch: refs/heads/GROOVY_2_6_X
Commit: b2984883526d7aa26e8ee9aa29e05d2abfa55d72
Parents: e325e6f
Author: sunlan <sunlan@apache.org>
Authored: Tue Aug 22 08:49:33 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Aug 22 08:50:01 2017 +0800

----------------------------------------------------------------------
 .../org/apache/groovy/parser/antlr4/internal/AtnManager.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/groovy/blob/b2984883/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/AtnManager.java
----------------------------------------------------------------------
diff --git a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/AtnManager.java
b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/AtnManager.java
index 92b2d5f..4851b92 100644
--- a/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/AtnManager.java
+++ b/subprojects/parser-antlr4/src/main/java/org/apache/groovy/parser/antlr4/internal/AtnManager.java
@@ -36,8 +36,8 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
 public class AtnManager {
     public static final ReentrantReadWriteLock RRWL = new ReentrantReadWriteLock(true);
     private static final String DFA_CACHE_THRESHOLD_OPT = "groovy.antlr4.cache.threshold";
-    private static final int DEFAULT_DFA_CACHE_THRESHOLD = 100;
-    private static final int MIN_DFA_CACHE_THRESHOLD = 50;
+    private static final int DEFAULT_DFA_CACHE_THRESHOLD = 64;
+    private static final int MIN_DFA_CACHE_THRESHOLD = 32;
     private static final int DFA_CACHE_THRESHOLD;
     private final Class ownerClass;
     private final ATN atn;


Mime
View raw message