🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #8882

Re: Let's put compression into NNTP -- I am willing to pay

#8882
From: Mark Delany
Date: Sat, 29 Jun 1996 00:00
84 lines
4263 bytes
swcxt@boco.co.gov (Shane Castle) writes:

>>Returning to Brad's original query about compressed NNTP. Well, I have
>>some bad news. Large articles tend not to offer great compression
>>rates using either compress or gzip.

>>To demonstrate this, do the following:
>>	find /var/news/alt/binaries -type f -print | grep '[0-9]' | 
>>		perl -nle 'print if -s > 30000;' | head -100 >/tmp/bin.flist
>>That is, select the first 100 articles that are greater than 30K bytes
>>in size.
>>Next, determine the compressability of the files:
>>	cat `cat /tmp/bin.flist` | wc -c
>>	cat `cat /tmp/bin.flist` | compress | wc -c
>>	cat `cat /tmp/bin.flist` | gzip | wc -c
>>The outputs I got were: 15.6M, 13.6M and 11.3M.

>You have selected the worst-case candidates for compression.  Articles
>in binary newsgroups are usually uuencoded, producing text files that
>do not lend themselves well to compression.

Perhaps the thinking is this: which groups have the largest articles?
Which groups are most erratic in terms of volumes per day? Which
groups fill up a lot of peoples disk space and which groups tend to be
the ones that people turn off first to avoid a lot of these problems?

If your answer is the same for most of these questions, then it does
follow that they are the ones that you might want to try and compress
first (granted, this may not be the ones that Brad wants to compress
first). But read on.

>>In general though, these results show the maximal compression of
>>articles possible across an NNTP link (in reality, they won't do as
>>well as there are fixed protocol overheads etc).

>I think rather that your results show the *minimal* possible
>compression of articles.

Certainly my wording wasn't as clear as it could have been. How about
".. show maximal compression of your problem articles using *naive*
compression".

Which brings us to this rather shameless leading question:

>>Would a specialized compressor help?

>Most probably.

I reckon you can go further than that and say "almost certainly".

Now, if others arrive at the same conclusion (and there are other good
reasons to do so, such as header to body ratios of non-binary
articles, the enormous redundancy in headers, etc) then this is far
more significant than it sounds as it means that a trivial solution is
almost certainly a waste of time. By trivial I mean any combo of:

	o	compress/gzip body end-to-end
	o	compressed/gzipped socket between servers
	o	compressed/gzipped rnews batched with uucp over tcp/ip
		(that old bug-bear).

To be useful, a specialized compressor will probably deal with headers
differently from bodies and it'll probably need to look inside bodies
to make content-based decisions. It may also evolve over time as
different (de facto) article content types hit the steets.

Heck, it may even benefit from doing something similar to VJ header
compression at the NNTP level (maybe). In any event, it'll almost
certainly need to reach into NNTP in some way.

Don't get me wrong, I'm all for compression that saves bandwidth and
disk, it's just that Brad is offering money for good reason - it's
quite a tough problem. Not the least of which will be "selling" the
solution and concomitant changes to a bucket-load of news admins, the
growing number of news product vendors and the newly formed NNTP WG.

Maybe that's not Brad's concern as he may be satisfied to solve the
problem in his sphere of interest, but I sometimes wonder whether
inertia is growing more quickly than news volumes.


Regards.

Technical Details
Message-ID: <4r2ana$6g3$1@bushwire.mira.net.au>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
References: <4qs8mb$abu@fugue.clari.net> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> <4qvd4l$3d7$1@bushwire.mira.net.au> <4r1478$1f7q@bcx01.boco.co.gov>

Show Full Headers
Complete Article Headers
Message-ID: <4r2ana$6g3$1@bushwire.mira.net.au>
Subject: Re: Let's put compression into NNTP -- I am willing to pay
Date: Sat, 29 Jun 1996 00:00:00 +0000
From: Mark Delany <markd@mira.net.au>
References: <4qs8mb$abu@fugue.clari.net> <4qt7k2$3hf@dfw-ixnews1.ix.netcom.com> <4qvd4l$3d7$1@bushwire.mira.net.au> <4r1478$1f7q@bcx01.boco.co.gov>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!not-for-mail
X-Deja-AN: 162710551
Organization: Werple Internet, Melbourne
Newsgroups: news.software.nntp