On Fri, Apr 27, 2001 at 08:29:14AM -0700, Ian Clarke wrote:
> On Fri, Apr 27, 2001 at 02:05:18AM -0700, Aaron Voisine wrote:
> > looking at the code, the simplest way to implement zlib compression is to
> > change line 39 of Freenet/client/Document.java to read:
> > 
> > this.data = new GZIPInputStream(source);
> > 
> > (you'd also have to add import java.util.zip.* near the top to get it to 
> > compile)
> 
> I really don't think this is a good idea, given that the vast majority
> of data on Freenet will already be compressed (jpg, mpeg, mp3, etc), and
> thus trying to gzip them will be a waste of time and processing
> resources.  The only things that might benefit from compression like
> this are HTML and TXT files, which make up an extremely small proportion
> of documents in Freenet.  Allowing these to be compressed would be a bad
> idea as it would make any content which used this compression scheme
> unreadable on older versions of the client.
It is worth it, because smaller files work better on freenet. It shouldn't be
required, for obvious reasons. It's a big gain on HTTP, but freenet's main
issue is latency as regards performance. But as regards persistence, overall
efficiency, etc, it may be a reasonable gain. Given that gzip is cheap and
standard, it makes sense.
> 
> It isn't worth it,
> 
> Ian.

-- 
Anarchists who refuse to learn the use of computer networks deserve to
live in slavery
        -- with apologies to Leon Trotsky

_______________________________________________
Devl mailing list
[EMAIL PROTECTED]
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to