From c2a744486eacbef9317429bd28b5ae35283df058 Mon Sep 17 00:00:00 2001 From: Zac Spitzer Date: Fri, 8 Nov 2024 16:04:55 +0100 Subject: [PATCH] try string builder size * 20 for toString --- core/src/main/java/lucee/runtime/converter/LazyConverter.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/lucee/runtime/converter/LazyConverter.java b/core/src/main/java/lucee/runtime/converter/LazyConverter.java index f7d85f8786..239a5e06b6 100755 --- a/core/src/main/java/lucee/runtime/converter/LazyConverter.java +++ b/core/src/main/java/lucee/runtime/converter/LazyConverter.java @@ -71,7 +71,7 @@ public static Object toRaw(Object o) { } private static String serializeStruct(Struct struct, Set done) { - StringBuilder sb = new StringBuilder( struct.size() * 10 ); + StringBuilder sb = new StringBuilder( struct.size() * 20 ); sb.append("{"); Iterator it = struct.keyIterator(); Key key; @@ -90,7 +90,7 @@ private static String serializeStruct(Struct struct, Set done) { } private static String serializeArray(Array array, Set done) { - StringBuilder sb = new StringBuilder( array.size() * 10 ); + StringBuilder sb = new StringBuilder( array.size() * 20 ); sb.append("["); int len = array.size(); for (int i = 1; i <= len; i++) {