Am Dienstag, 28. April 2009 22:13:45 schrieb Matthew Toseland:
> On Saturday 18 April 2009 14:34:54 saces at freenetproject.org wrote:
> > Author: saces
> > Date: 2009-04-18 13:34:54 +0000 (Sat, 18 Apr 2009)
> > New Revision: 26960
> >
> > Modified:
> >    trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
> > Log:
> > may better container limits
>
> Do you factor in 1K per file for the tar overheads?

ContainerSizeEstimator.tarItemSize(long size)  does this:
                return 512 + (((size + 511) / 512) * 512);

> > Modified:
> > trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
> > =================================================================== ---
> > trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
>
> 2009-04-18 13:13:29 UTC (rev 26959)
>
> > +++ trunk/freenet/src/freenet/client/async/DefaultManifestPutter.java
>
> 2009-04-18 13:34:54 UTC (rev 26960)
>
> > @@ -61,10 +61,12 @@
> >             });
> >     }
> >
> > -   public static final long DEFAULT_MAX_CONTAINERSIZE = (2038-64)*1024;
> > +   // the 'physical' limit for container size
> > +   public static final long DEFAULT_MAX_CONTAINERSIZE = 2048*1024;
> >     public static final long DEFAULT_MAX_CONTAINERITEMSIZE = 1024*1024;
> >     // a container > (MAX_CONTAINERSIZE-CONTAINERSIZE_SPARE) is treated
>
> as 'full'
>
> > -   public static final long DEFAULT_CONTAINERSIZE_SPARE = 15*1024;
> > +   // this should prevent to big containers
> > +   public static final long DEFAULT_CONTAINERSIZE_SPARE = 196*1024;
> >
> >     public DefaultManifestPutter(ClientCallback clientCallback,
>
> HashMap<String, Object> manifestElements, short prioClass, FreenetURI
> target, String defaultName, InsertContext ctx, boolean getCHKOnly,
>
> >                     RequestClient clientContext, boolean earlyEncode) {
> >
> > _______________________________________________
> > cvs mailing list
> > cvs at freenetproject.org
> > http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs



Reply via email to