From 7c2c507872d4540d38dba9b57841dc04d245553d Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 4 Nov 2022 10:21:33 +0530 Subject: [PATCH 1/4] Reduced initial map size --- .../src/main/java/io/appform/hope/core/visitors/Evaluator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 { From 0d9fd84152c1072781ebca3dec94214d701454a6 Mon Sep 17 00:00:00 2001 From: Rishabh Date: Fri, 4 Nov 2022 10:29:02 +0530 Subject: [PATCH 2/4] Temporarily added branch to MR CI --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: From 91ca35a24971262c483a27666da50db434b395ae Mon Sep 17 00:00:00 2001 From: r0goyal Date: Fri, 4 Nov 2022 05:08:13 +0000 Subject: [PATCH 3/4] Comitting files changed by Github Actions Signed-off-by: github-actions[bot] --- .../io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json | 2 +- .../io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json | 2 +- ....appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json | 2 +- ...ppform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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 a603bfa..e24e2ea 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" : 62948.84671053233 + "mean_ops" : 65705.58781038791 } \ 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 7da264a..0da688f 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" : 7265.765021188115 + "mean_ops" : 6620.1246188066625 } \ 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 2859d2b..260b75a 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" : 74711.24319523839 + "mean_ops" : 77781.40141825078 } \ 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 dd8cbb6..14c442e 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" : 39789.909577131766 + "mean_ops" : 39437.232828860804 } \ No newline at end of file From 26b932a76951cbf31e1d3d51e889195e56462a76 Mon Sep 17 00:00:00 2001 From: r0goyal Date: Fri, 4 Nov 2022 10:55:40 +0000 Subject: [PATCH 4/4] Comitting files changed by Github Actions Signed-off-by: github-actions[bot] --- .../io.appform.hope.lang.JsonPathPerfTest.testBulkEval.json | 2 +- .../io.appform.hope.lang.JsonPathPerfTest.testSingleEval.json | 2 +- ....appform.hope.lang.JsonPointerPerfTest.testPerfBulkEval.json | 2 +- ...ppform.hope.lang.JsonPointerPerfTest.testPerfSingleEval.json | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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