Article View: news.software.nntp
Article #53555Re: Header compression - necessary, useful, senseless ?
From: The Archiver
Date: Mon, 30 Jul 2001 08:15
Date: Mon, 30 Jul 2001 08:15
83 lines
4293 bytes
4293 bytes
curt@kcwc.com (Curt Welch) wrote: >> Most compressing algortihms I've seen yet are based on a block of data. >> So perhaps 4-64 kBytes are compressed - and then moved to the >> 'out-queue'. Such a compressed block might be sent out with a length >> byte. > >You could also simply send the data in blocks with a block size included >before each block. So the binary data stream starts with a two byte >block size, then N bytes of data, and keeps repeating like that until >done. The last size will be a zero lengh byte to mark the end. Yes, this seems to be a good way. >Id still rather just stick with the NNTP standard of CR LF DOT to mark >the end and DOT stuffing inside the stream. Sorry, but I definitely do not agree with you: Modifying compression algortihms to fit into such a scheme is a hard work. It is no longer possible to take an algorithm "out of the box" - apply it to the data and then send it out. I see no chance to modify algorithms - and get acceptance anywhere for modifed routines. This applies especially if 2-5 different methods would be supported. Whoever wants to support compressed headers (server would do this only for sending) has to modify the code anyway. Why adding complexity to the conversions when the CRLF-DOT is completely out of date for binary transports? _All_ 8 bit transports are working with a length indicator. Do you believe that it is really necessary to use the 'standard receive routines' to read the incoming data? I assume that your server-soft (or others) have a default input routine as 'Read Block Until CRLF.CRLF' which is called once after an XOVER command (for sucking downloads). I'm sure that it would be programming work to make another routine which is "Read Binary Block". But if we want to compress also other commands - and articles then we would have to adapt everything to CRLF.CRLF Perhaps new binary extensions should use length based transport. Perhaps I'm completely wrong - and the implementation would be very hard. But for _servers_ I see far less work if we simply use this structure: CXOVER 300-500 ### List of compressed headers follows [Algorithm-Identifier] CRLF [*Length word] [8-bit-data-block] [*Length word] [8-bit-data-block] ... [*0] CRLF CRLF >Anyone that needs to read data from an NNTP stream allready has code >to do the above. And if they were smart, it was writen to deal with >binary data already. So there's no change required to read the >compressed data. Yes, but as well as on servers side you would have to use a modified decompressor. I know very well that the CRLF.CRLF method is absolute transport standard for text. But for binaries it would add complexity forever. If we define something and it gets accepted, then this 'semi binary transport' might live for the next 20 years - and cause additional work for ALL future extensions. True binary transport allows compressed headers, compressed articles, true binary bodies, unicode, and, and, and...... If someone believes that I want to introduce 'true binary transport' through this 'backdoor' with compression: Yes - this is my intention. I really want to roast multiple eggs and chickens on one fire. And it makes sense (from my point of view). -- Juergen, [The Archiver]
Technical Details
Message-ID:
<4215a.u71207@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-mailReferences:
<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>Show Full Headers
Complete Article Headers
Message-ID: <4215a.u71207@archiver.winews.net> Subject: Re: Header compression - necessary, useful, senseless ? Date: Mon, 30 Jul 2001 08:15:42 +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> 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: 82 X-Newsreader: MyNews