Author: toad
Date: 2009-01-27 17:44:12 +0000 (Tue, 27 Jan 2009)
New Revision: 25323

Modified:
   branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
Log:
Slight optimisation


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java
===================================================================
--- 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java   
    2009-01-27 17:43:00 UTC (rev 25322)
+++ 
branches/db4o/freenet/src/freenet/support/io/PersistentTempBucketFactory.java   
    2009-01-27 17:44:12 UTC (rev 25323)
@@ -6,9 +6,8 @@
 import java.io.File;
 import java.io.FileFilter;
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.HashSet;
-import java.util.Iterator;
-import java.util.LinkedList;
 import java.util.Random;
 
 import com.db4o.ObjectContainer;
@@ -45,7 +44,7 @@
        private transient Random weakPRNG;
        
        /** Buckets to free */
-       private LinkedList<DelayedFreeBucket> bucketsToFree;
+       private ArrayList<DelayedFreeBucket> bucketsToFree;
        
        private final long nodeDBHandle;
        
@@ -95,7 +94,7 @@
                        originalFiles.add(f);
                }
                
-               bucketsToFree = new LinkedList<DelayedFreeBucket>();
+               bucketsToFree = new ArrayList<DelayedFreeBucket>();
        }
        
        public void init(File dir, String prefix, RandomSource strongPRNG, 
Random weakPRNG) throws IOException {

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

Reply via email to