Author: toad
Date: 2008-08-05 18:04:04 +0000 (Tue, 05 Aug 2008)
New Revision: 21623

Modified:
   branches/db4o/freenet/src/freenet/node/Node.java
Log:
Use BTree-based freespace tracking.
This will be slightly slower than the default (RAM-based freespace tracking), 
but the default uses very large amounts of non-collectible memory (73MB out of 
128MB on my long-lived db4o node!).

Modified: branches/db4o/freenet/src/freenet/node/Node.java
===================================================================
--- branches/db4o/freenet/src/freenet/node/Node.java    2008-08-05 17:44:42 UTC 
(rev 21622)
+++ branches/db4o/freenet/src/freenet/node/Node.java    2008-08-05 18:04:04 UTC 
(rev 21623)
@@ -727,6 +727,7 @@
                /* FIXME: this may throw if e.g. we ran out of disk space last 
time. 
                 * We need to back it up and auto-recover. */
                /* Client-server mode. Refresh objects if you have a long-lived 
container! */
+               Db4o.configure().freespace().useBTreeSystem();
                
Db4o.configure().objectClass(freenet.client.async.PersistentCooldownQueueItem.class).objectField("key").indexed(true);
                
Db4o.configure().objectClass(freenet.client.async.PersistentCooldownQueueItem.class).objectField("keyAsBytes").indexed(true);
                
Db4o.configure().objectClass(freenet.client.async.PersistentCooldownQueueItem.class).objectField("time").indexed(true);


Reply via email to