🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #53572

Re: Header compression - necessary, useful, senseless ?

#53572
From: The Archiver
Date: Tue, 31 Jul 2001 14:21
65 lines
3918 bytes
curt@kcwc.com (Curt Welch) wrote:

>> Sorry, but I definitely do not agree with you:
>> Modifying compression algortihms to fit into such a scheme is a hard
>> work.
>
>I think you are confused.  There's no need to modify the compresion
>algorithm with either scheme.  I only brought that idea up as something to
>think about.
>
>With both ideas (standard NNTP data enocoding, or non-standard block-length
>encoding) you are still forced to modify the data stream after it comes out
>of the compressor.  

I did not want to check for CRLF or DOTS again.
I wanted to send a full 8 bit binary data stream.

>With one, you are inserting byte counts and a NUL NUL
>CR LF end marker.  With the other you are inserting DOTs, and a CR LF DOT
>CR LF end marker.  There's really very little difference other than the
>fact that one is the NNTP standard and the other isn't.

We might again have the problems with TAB and NULL and other 
things. This would result in encoding the compressed data stream
with something like "QpLite" or "yEnc". 
I'm not sure about complexity of modifications now.

>On top of that, I suspect the DOT stuffing would tend to produce less
>output since you only need to insert the DOT if you see the three character
>sequence CR LF DOT in the data stream - and the odds of that showing up in
>a compressed data stream are 1 out of 2 ^ 24.

Even for 1 out of 2^24 some additional CPU cycles would be necessary 
And if more encoding would be necessary then it might become worse.

>The byte count system would tend to be easier to code, both for the sending
>side and the receiving side - simply because it fits better with the way
>most people would structure their code (reading and processing blocks
>of data).

Easier to code and faster (I believe).

>If we were creating a new protocol the byte counts would probably be my
>method of choice. But since we are talking NNTP, and all servers that exist
>already have send and receive data routines that correctly and effecently
>deal with the dot stuffing technique, I just see no reason to make it any
>more complex than it needs to be by introducing a second encoding technique
>when we already have one that works fine, and saves more bandwidth.

It seems that you are defining NNTP by "sending data until CRLF.CRLF comes.
For me this was/is just a minor thing. Because the incoming data would be 
treated completely differently from the 'normal' XOVER (decoding incoming
bytes 'on the fly') I did already calculate the time for writing a new 
'incoming data' routine - based on lengths - which would be also necessary
for true binary transport.

Well, I will think about it again.
Thanks for the fundamental clarification.
A 'cowboy programmer' tends to shoot very quickly.
For heavens sake there are still sherifs around ;-)

-- 
Juergen, [The Archiver]

Technical Details
Message-ID: <1521g.v71200@archiver.winews.net>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.alt.net!archiver.winews.net!not-for-mail
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <4215a.u71207@archiver.winews.net> <20010730105713.772$dy@newsreader.com>

Show Full Headers
Complete Article Headers
Message-ID: <1521g.v71200@archiver.winews.net>
Subject: Re: Header compression - necessary, useful, senseless ?
Date: Tue, 31 Jul 2001 14:21:15 +0000
From: archiver@i3w.com (The Archiver)
References: <3009e.q71214@archiver.winews.net> <20010726131654.725$7w@newsreader.com> <0t3b605fdfi155bn3e9%md@wonderland.linux.it> <20010726175821.025$Hd@newsreader.com> <4112a.r71201@archiver.winews.net> <20010727120040.184$4k@newsreader.com> <4215a.u71207@archiver.winews.net> <20010730105713.772$dy@newsreader.com>
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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.alt.net!archiver.winews.net!not-for-mail
Newsgroups: news.software.nntp
Organization: Altopia Corp. - Usenet Access - http://www.altopia.com
Lines: 64
X-Newsreader: MyNews