From 2c76718fff8d1a3061f9d4084a71969d3ba3c46c Mon Sep 17 00:00:00 2001 From: wenshao Date: Sat, 11 Jan 2025 18:36:37 +0800 Subject: [PATCH] CACHE_THRESHOLD 8M --- core/src/main/java/com/alibaba/fastjson2/JSONFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/java/com/alibaba/fastjson2/JSONFactory.java b/core/src/main/java/com/alibaba/fastjson2/JSONFactory.java index 0d8e7a825b..80bd3327ce 100644 --- a/core/src/main/java/com/alibaba/fastjson2/JSONFactory.java +++ b/core/src/main/java/com/alibaba/fastjson2/JSONFactory.java @@ -338,7 +338,7 @@ public static void setUseJacksonAnnotation(boolean useJacksonAnnotation) { CACHE_ITEMS = items; } - static final int CACHE_THRESHOLD = 1024 * 1024 * 4; + static final int CACHE_THRESHOLD = 1024 * 1024 * 8; static final AtomicReferenceFieldUpdater CHARS_UPDATER = AtomicReferenceFieldUpdater.newUpdater(CacheItem.class, char[].class, "chars"); static final AtomicReferenceFieldUpdater BYTES_UPDATER