directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r161410 - directory/sandbox/trunk/asn1-new-codec/src/perfs/org/apache/ans1/ber/LdapDecoderPerf.java
Date Fri, 15 Apr 2005 05:57:56 GMT
Author: elecharny
Date: Thu Apr 14 22:57:56 2005
New Revision: 161410

URL: http://svn.apache.org/viewcvs?view=rev&rev=161410
Log:
Cleaned incubator reference.
Changed the code to handle the underlying changes

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

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=161409&r2=161410
==============================================================================
--- 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
Thu Apr 14 22:57:56 2005
@@ -20,7 +20,6 @@
 import org.apache.asn1.ber.containers.IAsn1Container;
 import org.apache.asn1.ldap.codec.DecoderException;
 import org.apache.asn1.ldap.codec.LdapMessageContainer;
-import org.apache.asn1.ldap.codec.LdapMessageGrammar;
 import org.apache.asn1.ldap.pojo.BindRequestPOJO;
 import org.apache.asn1.ldap.pojo.LdapMessagePOJO;
 import org.apache.asn1.ldap.pojo.SimpleAuthenticationPOJO;
@@ -57,7 +56,7 @@
      */
     public void run()
     {
-        Asn1Decoder ldapDecoder = new Asn1Decoder(false);
+        Asn1Decoder ldapDecoder = new Asn1Decoder();
         
         ByteBuffer  stream      = ByteBuffer.allocate( 0x35 );
         stream.put(
@@ -85,7 +84,7 @@
 
             for ( int i = 0; i < 1000000; i++ )
             {
-                log.debug( "---------------------> " + i );
+                //log.debug( "---------------------> " + i );
 
                 // Allocate a BindRequest Container
                 IAsn1Container ldapMessageContainer = null;
@@ -102,7 +101,6 @@
                     return;
                 }
 
-                ldapMessageContainer.setGrammar( LdapMessageGrammar.getInstance() );
                 ldapMessageContainer.setPoolManager( ldapDecoder.getPoolManager() );
 
                 ldapDecoder.decode( stream, ldapMessageContainer );
@@ -128,7 +126,6 @@
 
             IAsn1Container ldapMessageContainer = ( IAsn1Container ) ldapDecoder.allocate(
                     PoolEnum.LDAP_MESSAGE_CONTAINER_POOL );
-            ldapMessageContainer.setGrammar( LdapMessageGrammar.getInstance() );
             ldapMessageContainer.setPoolManager( ldapDecoder.getPoolManager() );
 
             ldapDecoder.decode( stream, ldapMessageContainer );



Mime
View raw message