marcsaeg 01/03/09 15:31:55
Modified: src/share/org/apache/jasper/runtime Tag: tomcat_32
BodyContentImpl.java
Log:
One last performance update to the previous commit.
Double the buffer size on a realloc instead of incrementing the length.
Submitted by: Andrew Gilbert [[EMAIL PROTECTED]]
Revision Changes Path
No revision
No revision
1.6.6.3 +1 -1
jakarta-tomcat/src/share/org/apache/jasper/runtime/BodyContentImpl.java
Index: BodyContentImpl.java
===================================================================
RCS file:
/home/cvs/jakarta-tomcat/src/share/org/apache/jasper/runtime/BodyContentImpl.java,v
retrieving revision 1.6.6.2
retrieving revision 1.6.6.3
diff -u -r1.6.6.2 -r1.6.6.3
--- BodyContentImpl.java 2001/03/04 03:42:19 1.6.6.2
+++ BodyContentImpl.java 2001/03/09 23:31:54 1.6.6.3
@@ -113,7 +113,7 @@
if (len <= Constants.DEFAULT_BUFFER_SIZE) {
tmp = new char [bufferSize + Constants.DEFAULT_BUFFER_SIZE];
- bufferSize += Constants.DEFAULT_BUFFER_SIZE;
+ bufferSize = bufferSize * 2;
} else {
tmp = new char [bufferSize + len];
bufferSize += len;
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]