tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From marcs...@apache.org
Subject cvs commit: jakarta-tomcat/src/share/org/apache/jasper/runtime BodyContentImpl.java
Date Fri, 09 Mar 2001 23:31:55 GMT
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 [andrew@soundbite.com]
  
  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: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, email: tomcat-dev-help@jakarta.apache.org


Mime
View raw message