directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159563 - in directory/sandbox/trunk/asn1-new-codec/src: java/org/apache/asn1/ber/Asn1Decoder.java perfs/org/apache/ans1/ber/LdapDecoderPerf.java
Date Thu, 31 Mar 2005 06:42:28 GMT
Author: elecharny
Date: Wed Mar 30 22:42:27 2005
New Revision: 159563

URL: http://svn.apache.org/viewcvs?view=rev&rev=159563
Log:
Restored the initial performance test, suppressed a try..catch I used while debuging.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java
    directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java?view=diff&r1=159562&r2=159563
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java (original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/ber/Asn1Decoder.java Wed
Mar 30 22:42:27 2005
@@ -277,29 +277,21 @@
         throws DecoderException
     {
 
-    	try
-		{
-	        if ( DEBUG )
-	        {
-	
-	            Tag tag = container.getCurrentTLV().getTag();
-	            log.debug( tag.toString() + " has been decoded" );
-	        }
-	
-	        // After having decoded a tag, we have to execute the action
-	        // which controls if this tag is allowed and well formed.
-	        container.getGrammar().executeAction( container );
-	
-	        // Switch to the next state, which is the Length decoding
-	        container.setState( TLVStateEnum.LENGTH_STATE_START );
-	
-	        return MORE;
-		} 
-    	catch (NullPointerException npe)
-		{
-    		npe.printStackTrace();
-    		throw new DecoderException("Null pinter exception");
-		}
+        if ( DEBUG )
+        {
+
+            Tag tag = container.getCurrentTLV().getTag();
+            log.debug( tag.toString() + " has been decoded" );
+        }
+
+        // After having decoded a tag, we have to execute the action
+        // which controls if this tag is allowed and well formed.
+        container.getGrammar().executeAction( container );
+
+        // Switch to the next state, which is the Length decoding
+        container.setState( TLVStateEnum.LENGTH_STATE_START );
+
+        return MORE;
     }
 
     /**

Modified: directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java?view=diff&r1=159562&r2=159563
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java
Wed Mar 30 22:42:27 2005
@@ -178,8 +178,8 @@
         LdapDecoderPerf ldpt4 = new LdapDecoderPerf();
 
         ldpt1.start();
-        //ldpt2.start();
-        //ldpt3.start();
-        //ldpt4.start();
+        ldpt2.start();
+        ldpt3.start();
+        ldpt4.start();
     }
 }



Mime
View raw message