Author: xor
Date: 2008-11-10 03:13:25 +0000 (Mon, 10 Nov 2008)
New Revision: 23462
Modified:
trunk/plugins/WoT/IdentityInserter.java
Log:
Specify a proper initial size for the temp bucket.
Modified: trunk/plugins/WoT/IdentityInserter.java
===================================================================
--- trunk/plugins/WoT/IdentityInserter.java 2008-11-10 02:30:11 UTC (rev
23461)
+++ trunk/plugins/WoT/IdentityInserter.java 2008-11-10 03:13:25 UTC (rev
23462)
@@ -142,7 +142,8 @@
*/
public void insert(OwnIdentity identity) throws
TransformerConfigurationException, FileNotFoundException,
ParserConfigurationException, TransformerException, IOException,
Db4oIOException, DatabaseClosedException, InvalidParameterException,
InsertException {
/* FIXME: Where is the synchronization? */
- Bucket tempB = tBF.makeBucket(1);
+ /* TODO: after the WoT has become large enough, calculate the
average size of identity.xml and either modify the constant or even calculate
dynamically */
+ Bucket tempB = tBF.makeBucket(8 * 1024);
OutputStream os = tempB.getOutputStream();
FreenetURI iURI;
try {