Skip to content

Commit

Permalink
Partial impl of #712 for 2.11
Browse files Browse the repository at this point in the history
  • Loading branch information
cowtowncoder committed Aug 19, 2021
1 parent c92dd82 commit abc7f13
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion release-notes/VERSION-2.x
Expand Up @@ -14,7 +14,9 @@ JSON library.
=== Releases ===
------------------------------------------------------------------------

2.12.0 (not yet released)
(not yet released)

#712: (partial) Optimize array allocation by JsonStringEncoder

2.11.4 (12-Dec-2020)

Expand Down
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 abc7f13

Please sign in to comment.