tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fha...@apache.org
Subject svn commit: r385731 - /tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMember.java
Date Tue, 14 Mar 2006 04:35:41 GMT
Author: fhanik
Date: Mon Mar 13 20:35:40 2006
New Revision: 385731

URL: http://svn.apache.org/viewcvs?rev=385731&view=rev
Log:
removed commented out code

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

Modified: tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMember.java
URL: http://svn.apache.org/viewcvs/tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMember.java?rev=385731&r1=385730&r2=385731&view=diff
==============================================================================
--- tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMember.java
(original)
+++ tomcat/container/tc5.5.x/modules/groupcom/src/share/org/apache/catalina/tribes/mcast/McastMember.java
Mon Mar 13 20:35:40 2006
@@ -140,6 +140,11 @@
     public byte[] getData()  {
         return getData(true);
     }
+    /**
+     * Highly optimized version of serializing a member into a byte array
+     * @param getalive boolean
+     * @return byte[]
+     */
     public byte[] getData(boolean getalive)  {
         //look in cache first
         if ( dataPkg!=null ) {
@@ -165,18 +170,12 @@
         long alive=System.currentTimeMillis()-getServiceStartTime();
         
         
-        //reduce byte copying
-        //System.arraycopy(XByteBuffer.toBytes((long)alive),0,data,0,8);
         XByteBuffer.toBytes((long)alive,data,0);
 
-        //reduce byte copying
-        //System.arraycopy(XByteBuffer.toBytes(port),0,data,8,4);
         XByteBuffer.toBytes(port,data,8);
         
         System.arraycopy(addr,0,data,12,addr.length);
 
-        //reduce byte copying
-        //System.arraycopy(XByteBuffer.toBytes(domaind.length),0,data,16,4);
         XByteBuffer.toBytes(domaind.length,data,16);
         
         System.arraycopy(domaind,0,data,20,domaind.length);



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


Mime
View raw message