@@ -50,7 +50,7 @@ public static class Config
5050 private final int stringEncoderBufferSize ;
5151 private final int stringDecoderBufferSize ;
5252 private final int packerBufferSize ;
53- private final int packerLargeStringThreshold ;
53+ private final int packerSmallStringOptimizationThreshold ; // This parameter is subject to change
5454 private final int packerRawDataCopyingThreshold ;
5555
5656 public Config (
@@ -62,7 +62,7 @@ public Config(
6262 int stringEncoderBufferSize ,
6363 int stringDecoderBufferSize ,
6464 int packerBufferSize ,
65- int packerLargeStringLengthThreshold ,
65+ int packerSmallStringOptimizationThreshold ,
6666 int packerRawDataCopyingThreshold )
6767 {
6868 checkArgument (packerBufferSize > 0 , "packer buffer size must be larger than 0: " + packerBufferSize );
@@ -77,7 +77,7 @@ public Config(
7777 this .stringEncoderBufferSize = stringEncoderBufferSize ;
7878 this .stringDecoderBufferSize = stringDecoderBufferSize ;
7979 this .packerBufferSize = packerBufferSize ;
80- this .packerLargeStringThreshold = packerLargeStringLengthThreshold ;
80+ this .packerSmallStringOptimizationThreshold = packerSmallStringOptimizationThreshold ;
8181 this .packerRawDataCopyingThreshold = packerRawDataCopyingThreshold ;
8282 }
8383
@@ -136,9 +136,9 @@ public int getPackerBufferSize()
136136 return packerBufferSize ;
137137 }
138138
139- public int getPackerLargeStringLengthThreshold ()
139+ public int getPackerSmallStringOptimizationThreshold ()
140140 {
141- return packerLargeStringThreshold ;
141+ return packerSmallStringOptimizationThreshold ;
142142 }
143143
144144 public int getPackerRawDataCopyingThreshold ()
@@ -162,7 +162,7 @@ public static class ConfigBuilder
162162 private int stringEncoderBufferSize = 8192 ;
163163 private int stringDecoderBufferSize = 8192 ;
164164 private int packerBufferSize = 8192 ;
165- private int packerLargeStringLengthThreshold = 512 ;
165+ private int packerSmallStringOptimizationThreshold = 512 ; // This parameter is subject to change
166166 private int packerRawDataCopyingThreshold = 512 ;
167167
168168 public Config build ()
@@ -176,7 +176,7 @@ public Config build()
176176 stringEncoderBufferSize ,
177177 stringDecoderBufferSize ,
178178 packerBufferSize ,
179- packerLargeStringLengthThreshold ,
179+ packerSmallStringOptimizationThreshold ,
180180 packerRawDataCopyingThreshold
181181 );
182182 }
@@ -229,9 +229,9 @@ public ConfigBuilder packerBufferSize(int size)
229229 return this ;
230230 }
231231
232- public ConfigBuilder packerLargeStringThreshold (int threshold )
232+ public ConfigBuilder packerSmallStringOptimizationThreshold (int threshold )
233233 {
234- this .packerLargeStringLengthThreshold = threshold ;
234+ this .packerSmallStringOptimizationThreshold = threshold ;
235235 return this ;
236236 }
237237
0 commit comments