Skip to content

Commit

Permalink
Merge branch '2.11' into 2.12
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 19, 2021
2 parents e952ae1 + abc7f13 commit cf5d622
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions release-notes/VERSION-2.x
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ JSON library.
=== Releases ===
------------------------------------------------------------------------

(not yet released)

#712: (partial) Optimize array allocation by JsonStringEncoder

2.12.4 (06-Jul-2021)

#702: `ArrayOutOfBoundException` at `WriterBasedJsonGenerator.writeString(Reader, int)`
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ public final class JsonStringEncoder
private final static int SURR2_FIRST = 0xDC00;
private final static int SURR2_LAST = 0xDFFF;

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

/*
/**********************************************************************
Expand Down

0 comments on commit cf5d622

Please sign in to comment.