From 067b6472d75595921eef44e05eae8d6192630e6b Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Sat, 14 Dec 2024 15:06:04 +0100 Subject: [PATCH] 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;