tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1459389 - /tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java
Date Thu, 21 Mar 2013 16:37:49 GMT
Author: markt
Date: Thu Mar 21 16:37:49 2013
New Revision: 1459389

URL: http://svn.apache.org/r1459389
Log:
Improve performance for typical use cases by roughly an order of magnitude

Modified:
    tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java

Modified: tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java?rev=1459389&r1=1459388&r2=1459389&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java (original)
+++ tomcat/trunk/java/org/apache/tomcat/util/codec/binary/BaseNCodec.java Thu Mar 21 16:37:49
2013
@@ -140,7 +140,7 @@ public abstract class BaseNCodec impleme
      * Defines the default buffer size - currently {@value}
      * - must be large enough for at least one encoded block+separator
      */
-    private static final int DEFAULT_BUFFER_SIZE = 8192;
+    private static final int DEFAULT_BUFFER_SIZE = 128;
 
     /** Mask used to extract 8 bits, used in decoding bytes */
     protected static final int MASK_8BITS = 0xff;



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message