Skip to content

Commit

Permalink
try string builder size * 20 for toString
Browse files Browse the repository at this point in the history
  • Loading branch information
zspitzer committed Nov 8, 2024
1 parent a33269c commit c2a7444
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/lucee/runtime/converter/LazyConverter.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static Object toRaw(Object o) {
}

private static String serializeStruct(Struct struct, Set<Object> done) {
StringBuilder sb = new StringBuilder( struct.size() * 10 );
StringBuilder sb = new StringBuilder( struct.size() * 20 );
sb.append("{");
Iterator<Key> it = struct.keyIterator();
Key key;
Expand All @@ -90,7 +90,7 @@ private static String serializeStruct(Struct struct, Set<Object> done) {
}

private static String serializeArray(Array array, Set<Object> 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++) {
Expand Down

0 comments on commit c2a7444

Please sign in to comment.