Author: j16sdiz
Date: 2008-12-30 06:44:15 +0000 (Tue, 30 Dec 2008)
New Revision: 24842

Modified:
   trunk/freenet/src/freenet/support/io/TempBucketFactory.java
Log:
memory optimization: most Bucket won't open more then once

Modified: trunk/freenet/src/freenet/support/io/TempBucketFactory.java
===================================================================
--- trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-12-30 
06:32:38 UTC (rev 24841)
+++ trunk/freenet/src/freenet/support/io/TempBucketFactory.java 2008-12-30 
06:44:15 UTC (rev 24842)
@@ -7,7 +7,6 @@
 import java.io.InputStream;
 import java.io.OutputStream;
 import java.lang.ref.WeakReference;
-import java.util.Iterator;
 import java.util.LinkedList;
 import java.util.ListIterator;
 import java.util.Queue;
@@ -86,7 +85,7 @@
                        this.currentBucket = cur;
                        this.creationTime = now;
                        this.osIndex = 0;
-                       this.tbis = new Vector<TempBucketInputStream>();
+                       this.tbis = new Vector<TempBucketInputStream>(1);
                        if(logMINOR) Logger.minor(this, "Created "+this, new 
Exception("debug"));
                }
                

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to