From 067b6472d75595921eef44e05eae8d6192630e6b Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Sat, 14 Dec 2024 15:06:04 +0100 Subject: [PATCH 1/3] optimize maxsize --- core/src/main/java/lucee/runtime/PageSourcePool.java | 2 +- core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/lucee/runtime/PageSourcePool.java b/core/src/main/java/lucee/runtime/PageSourcePool.java index 7b4cea8059..679943b0c9 100644 --- a/core/src/main/java/lucee/runtime/PageSourcePool.java +++ b/core/src/main/java/lucee/runtime/PageSourcePool.java @@ -51,7 +51,7 @@ public final class PageSourcePool implements Dumpable { // TODO must not be thread safe, is used in sync block only private final Map> pageSources = new ConcurrentHashMap>(); - private int maxSize_min = 1000; + private int maxSize_min = 767; private PageSourcePoolWatcher watcher; private Object token = new SerializableObject(); private MappingImpl mapping; diff --git a/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java b/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java index aca492e3cc..9300ea1504 100755 --- a/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java +++ b/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java @@ -27,7 +27,7 @@ */ public final class ScopeFactory { - private static final int MAX_SIZE = 50; + private static final int MAX_SIZE = 47; int argumentCounter = 0; From 2e417c933a9b04038f82615ba1c1dda8da2aa5e2 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Sat, 14 Dec 2024 15:07:05 +0100 Subject: [PATCH 2/3] Revert "optimize maxsize" This reverts commit 067b6472d75595921eef44e05eae8d6192630e6b. --- core/src/main/java/lucee/runtime/PageSourcePool.java | 2 +- core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/lucee/runtime/PageSourcePool.java b/core/src/main/java/lucee/runtime/PageSourcePool.java index 679943b0c9..7b4cea8059 100644 --- a/core/src/main/java/lucee/runtime/PageSourcePool.java +++ b/core/src/main/java/lucee/runtime/PageSourcePool.java @@ -51,7 +51,7 @@ public final class PageSourcePool implements Dumpable { // TODO must not be thread safe, is used in sync block only private final Map> pageSources = new ConcurrentHashMap>(); - private int maxSize_min = 767; + private int maxSize_min = 1000; private PageSourcePoolWatcher watcher; private Object token = new SerializableObject(); private MappingImpl mapping; diff --git a/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java b/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java index 9300ea1504..aca492e3cc 100755 --- a/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java +++ b/core/src/main/java/lucee/runtime/type/scope/ScopeFactory.java @@ -27,7 +27,7 @@ */ public final class ScopeFactory { - private static final int MAX_SIZE = 47; + private static final int MAX_SIZE = 50; int argumentCounter = 0; From 44586f9795765b5f49f16469c501aa40ca989a08 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Sat, 14 Dec 2024 15:15:08 +0100 Subject: [PATCH 3/3] try max 767 for pageSourcePool --- core/src/main/java/lucee/runtime/PageSourcePool.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/lucee/runtime/PageSourcePool.java b/core/src/main/java/lucee/runtime/PageSourcePool.java index 7b4cea8059..679943b0c9 100644 --- a/core/src/main/java/lucee/runtime/PageSourcePool.java +++ b/core/src/main/java/lucee/runtime/PageSourcePool.java @@ -51,7 +51,7 @@ public final class PageSourcePool implements Dumpable { // TODO must not be thread safe, is used in sync block only private final Map> pageSources = new ConcurrentHashMap>(); - private int maxSize_min = 1000; + private int maxSize_min = 767; private PageSourcePoolWatcher watcher; private Object token = new SerializableObject(); private MappingImpl mapping;