On Monday 10 November 2008 03:13, xor at freenetproject.org 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 {
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20081112/386483f6/attachment.pgp>