tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r407667 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java
Date Fri, 19 May 2006 00:06:09 GMT
Author: fhanik
Date: Thu May 18 17:06:09 2006
New Revision: 407667

URL: http://svn.apache.org/viewvc?rev=407667&view=rev
Log:
Tiny perf improvement

Modified:
    tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java
URL: http://svn.apache.org/viewvc/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java?rev=407667&r1=407666&r2=407667&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/io/ChannelData.java
Thu May 18 17:06:09 2006
@@ -231,7 +231,9 @@
         System.arraycopy(b,offset,addr,0,addr.length);
         data.setAddress(MemberImpl.getMember(addr));
         offset += addr.length; //addr data
-        data.message = new XByteBuffer(new byte[XByteBuffer.toInt(b,offset)],false);
+        int xsize = XByteBuffer.toInt(b,offset);
+        //data.message = new XByteBuffer(new byte[xsize],false);
+        data.message = BufferPool.getBufferPool().getBuffer(xsize,false);
         offset += 4; //message length
         System.arraycopy(b,offset,data.message.getBytesDirect(),0,data.message.getLength());
         offset += data.message.getLength(); //message data



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


Mime
View raw message