File tree 3 files changed +8
-7
lines changed
src/main/java/com/fasterxml/jackson/core/util
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ JSON library.
31
31
#508 : Add new exception type `InputCoercionException` to be used for failed coercions
32
32
like overflow for `int `
33
33
#527 : Add simple module-info for JDK9+, using Moditect
34
+ #539 : Reduce max size of recycled byte[]/char[] blocks by `TextBuffer`, `ByteArrayBuilder`
34
35
35
36
2.9 .9 (16 - May - 2019 )
36
37
Original file line number Diff line number Diff line change @@ -33,10 +33,10 @@ public final class ByteArrayBuilder extends OutputStream
33
33
// Size of the first block we will allocate.
34
34
private final static int INITIAL_BLOCK_SIZE = 500 ;
35
35
36
- // Maximum block size we will use for individual non-aggregated
37
- // blocks. Let 's limit to using 256k chunks.
38
- private final static int MAX_BLOCK_SIZE = (1 << 18 );
39
-
36
+ // Maximum block size we will use for individual non-aggregated blocks.
37
+ // For 2.10, let 's limit to using 128k chunks (was 256k up to 2.9)
38
+ private final static int MAX_BLOCK_SIZE = (1 << 17 );
39
+
40
40
final static int DEFAULT_BLOCK_ARRAY_SIZE = 40 ;
41
41
42
42
// Optional buffer recycler instance that we can use for allocating the first block.
Original file line number Diff line number Diff line change @@ -34,10 +34,10 @@ public final class TextBuffer
34
34
final static int MIN_SEGMENT_LEN = 1000 ;
35
35
36
36
/**
37
- * Let's limit maximum segment length to something sensible
38
- * like 256k
37
+ * Let's limit maximum segment length to something sensible.
38
+ * For 2.10, let's limit to using 64kc chunks (128 kB) -- was 256kC/512kB up to 2.9
39
39
*/
40
- final static int MAX_SEGMENT_LEN = 0x40000 ;
40
+ final static int MAX_SEGMENT_LEN = 0x10000 ;
41
41
42
42
/*
43
43
/**********************************************************
You can’t perform that action at this time.
0 commit comments