Skip to content

Commit cf5d622

Browse files
committed
Merge branch '2.11' into 2.12
2 parents e952ae1 + abc7f13 commit cf5d622

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

release-notes/VERSION-2.x

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ JSON library.
1414
=== Releases ===
1515
------------------------------------------------------------------------
1616

17+
(not yet released)
18+
19+
#712: (partial) Optimize array allocation by JsonStringEncoder
20+
1721
2.12.4 (06-Jul-2021)
1822

1923
#702: `ArrayOutOfBoundException` at `WriterBasedJsonGenerator.writeString(Reader, int)`

src/main/java/com/fasterxml/jackson/core/io/JsonStringEncoder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ public final class JsonStringEncoder
3030
private final static int SURR2_FIRST = 0xDC00;
3131
private final static int SURR2_LAST = 0xDFFF;
3232

33-
private final static int INITIAL_CHAR_BUFFER_SIZE = 120;
34-
private final static int INITIAL_BYTE_BUFFER_SIZE = 200;
33+
// 18-Aug-2021, tatu: [core#712] use bit lower defaults for 2.11/2.12
34+
private final static int INITIAL_CHAR_BUFFER_SIZE = 30;
35+
private final static int INITIAL_BYTE_BUFFER_SIZE = 60;
3536

3637
/*
3738
/**********************************************************************

0 commit comments

Comments
 (0)