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:49:38 GMT
Repository: groovy
Updated Branches:
  refs/heads/master 5c4bdad17 -> f9680f84c


Adjust the min and default value of dfa cache threshold


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

Branch: refs/heads/master
Commit: f9680f84c09acd450a3e0b1dba7b7e199f5e6300
Parents: 5c4bdad
Author: sunlan <sunlan@apache.org>
Authored: Tue Aug 22 08:49:33 2017 +0800
Committer: sunlan <sunlan@apache.org>
Committed: Tue Aug 22 08:49:33 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/f9680f84/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 82f2e85..f215463 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