diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6377be4..18ee823 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,7 +4,7 @@ on: push: branches: [ master ] pull_request: - branches: [ master ] + branches: [ master, pointer_cache_removal ] jobs: build: diff --git a/hope-core/src/main/java/io/appform/hope/core/visitors/Evaluator.java b/hope-core/src/main/java/io/appform/hope/core/visitors/Evaluator.java index aa8890e..10c0825 100644 --- a/hope-core/src/main/java/io/appform/hope/core/visitors/Evaluator.java +++ b/hope-core/src/main/java/io/appform/hope/core/visitors/Evaluator.java @@ -109,7 +109,7 @@ public static class EvaluationContext { private final DocumentContext jsonContext; private final JsonNode rootNode; private final Evaluator evaluator; - private final Map jsonPathEvalCache = new HashMap<>(128); + private final Map jsonPathEvalCache = new HashMap<>(32); } public static class LogicEvaluator extends VisitorAdapter { diff --git a/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json b/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json index ba40b02..42ad5dc 100644 --- a/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json +++ b/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json @@ -4,5 +4,5 @@ "iterations" : 2, "threads" : 1, "forks" : 3, - "mean_ops" : 57357.653438961665 + "mean_ops" : 59723.617158905305 } \ No newline at end of file diff --git a/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json b/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json index c43e094..0988deb 100644 --- a/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json +++ b/hope-lang/perf/results/io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json @@ -4,5 +4,5 @@ "iterations" : 2, "threads" : 1, "forks" : 3, - "mean_ops" : 6701.260259282096 + "mean_ops" : 7445.6173155448705 } \ No newline at end of file diff --git a/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json b/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json index 8c903c2..a4afdb6 100644 --- a/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json +++ b/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json @@ -4,5 +4,5 @@ "iterations" : 2, "threads" : 1, "forks" : 3, - "mean_ops" : 63563.64388672777 + "mean_ops" : 76611.32163345668 } \ No newline at end of file diff --git a/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json b/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json index 7d82be1..abbc45c 100644 --- a/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json +++ b/hope-lang/perf/results/io.appform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json @@ -4,5 +4,5 @@ "iterations" : 2, "threads" : 1, "forks" : 3, - "mean_ops" : 33326.55546688091 + "mean_ops" : 35115.58864446951 } \ No newline at end of file