directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r159945 - directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java
Date Sun, 03 Apr 2005 18:03:44 GMT
Author: elecharny
Date: Sun Apr  3 11:03:44 2005
New Revision: 159945

URL: http://svn.apache.org/viewcvs?view=rev&rev=159945
Log:
Extended the pools by adding MutableString pools. I *MUST* find a way to configure the initial
sizing of those pools.

Modified:
    directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java

Modified: directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java
URL: http://svn.apache.org/viewcvs/directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java?view=diff&r1=159944&r2=159945
==============================================================================
--- directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java
(original)
+++ directory/sandbox/trunk/asn1-new-codec/src/java/org/apache/asn1/util/pools/GlobalPoolManager.java
Sun Apr  3 11:03:44 2005
@@ -23,6 +23,14 @@
 import org.apache.asn1.ldap.pojo.factories.LdapMessagePOJOFactory;
 import org.apache.asn1.ldap.pojo.factories.SaslAuthenticationPOJOFactory;
 import org.apache.asn1.ldap.pojo.factories.SimpleAuthenticationPOJOFactory;
+import org.apache.asn1.util.MutableString1024Factory;
+import org.apache.asn1.util.MutableString128Factory;
+import org.apache.asn1.util.MutableString16Factory;
+import org.apache.asn1.util.MutableString256Factory;
+import org.apache.asn1.util.MutableString32Factory;
+import org.apache.asn1.util.MutableString512Factory;
+import org.apache.asn1.util.MutableString64Factory;
+import org.apache.asn1.util.MutableStringFactory;
 import org.apache.asn1.util.ObjectFactory;
 
 import org.apache.log4j.Logger;
@@ -80,6 +88,29 @@
         pools[PoolEnum.LDAP_MESSAGE_CONTAINER_POOL]  = new GlobalPool(
                 new LdapMessageContainerFactory(), 128, 1024 );
 
+        pools[PoolEnum.STRING_POOL_16] = new GlobalPool(
+                new MutableString16Factory(), 10240, 10240 );
+
+        pools[PoolEnum.STRING_POOL_32] = new GlobalPool(
+                new MutableString32Factory(), 10240, 10240 );
+        
+        pools[PoolEnum.STRING_POOL_64] = new GlobalPool(
+                new MutableString64Factory(), 10240, 10240 );
+        
+        pools[PoolEnum.STRING_POOL_128] = new GlobalPool(
+                new MutableString128Factory(), 5120, 5120 );
+        
+        pools[PoolEnum.STRING_POOL_256] = new GlobalPool(
+                new MutableString256Factory(), 1024, 1024 );
+        
+        pools[PoolEnum.STRING_POOL_512] = new GlobalPool(
+                new MutableString512Factory(), 512, 512 );
+
+        pools[PoolEnum.STRING_POOL_1024] = new GlobalPool(
+                new MutableString1024Factory(), 256, 256 );
+
+        pools[PoolEnum.STREAMED_STRING_POOL] = new GlobalPool(
+                new MutableStringFactory(), 256, 256 );
     }
 
     //~ Methods ------------------------------------------------------------------------------------



Mime
View raw message