On Monday 10 November 2008 03:13, [EMAIL PROTECTED] wrote: > 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.
With some bucket implementations, the initial size cannot be exceeded... You
really don't have to set a limit...
>
> 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 {
pgprS9SYvDi9o.pgp
Description: PGP signature
_______________________________________________ Devl mailing list [email protected] http://emu.freenetproject.org/cgi-bin/mailman/listinfo/devl
