Repository: incubator-drill Updated Branches: refs/heads/master 1ce7c9390 -> 09b00b1b7
DRILL-1369: Constrain code compilation cache. Project: http://git-wip-us.apache.org/repos/asf/incubator-drill/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-drill/commit/09b00b1b Tree: http://git-wip-us.apache.org/repos/asf/incubator-drill/tree/09b00b1b Diff: http://git-wip-us.apache.org/repos/asf/incubator-drill/diff/09b00b1b Branch: refs/heads/master Commit: 09b00b1b7d2f65038a7d0da63bac89ab8ba8b4df Parents: 1ce7c93 Author: Jacques Nadeau <[email protected]> Authored: Tue Sep 2 22:00:17 2014 -0700 Committer: Jacques Nadeau <[email protected]> Committed: Tue Sep 2 22:00:17 2014 -0700 ---------------------------------------------------------------------- .../main/java/org/apache/drill/exec/compile/CodeCompiler.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-drill/blob/09b00b1b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java ---------------------------------------------------------------------- diff --git a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java index 2edc902..a9b0c61 100644 --- a/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java +++ b/exec/java-exec/src/main/java/org/apache/drill/exec/compile/CodeCompiler.java @@ -45,7 +45,10 @@ public class CodeCompiler { public CodeCompiler(DrillConfig config, DistributedCache distributedCache, OptionManager systemOptionManager){ this.transformer = new ClassTransformer(distributedCache); this.distributedCache = distributedCache; - this.cache = CacheBuilder.newBuilder().build(new Loader()); + this.cache = CacheBuilder // + .newBuilder() // + .maximumSize(1000) // + .build(new Loader()); this.systemOptionManager = systemOptionManager; this.config = config; }
