Article View: news.software.nntp
Article #87558Re: NNTP COMPRESS extension
From: Julien ÉLIE
Date: Fri, 02 Dec 2016 21:30
Date: Fri, 02 Dec 2016 21:30
35 lines
2966 bytes
2966 bytes
Hi Dieter, > I did not assume a "level 0" compression (or lack thereof) because some > compression methods (other than deflate/zlib) may not support variable > levels. Also, such a level is not equivalent to no compression (a NULL) > as it still must have headers that indicate a value of zero, and thus > overhead. NULL would have no overhead. I understand your point. You're right that there is a (very little) overhead with "level 0" compression. Not a big deal compared with the gain of bytes when compressing other results during the session, and also TLS overhead when used. One suggested to add a NONE algorithm, and allow COMPRESS to be called inside a COMPRESS session, replacing the previous one. For instance calling COMPRESS DEFLATE, sending a few commands, and then COMPRESS NONE. We decided not to allow that out of consistency with the COMPRESS command for IMAP, and out of maximal simplicity for the command. In case a new compression method is ever added to COMPRESS, and do not have a "level 0" equivalent, the document defining it may as well create a new NNTP command to reproduce that behaviour (for instance, "COMPRESS SHRINK" activates the SHRINK compression method, and the commands "SHRINK FULL" and "SHRINK NONE" are also recognized to activate/deactivate the SHRINK compression method). As you see, solutions can be found if needed. COMPRESS is not incompatible with the scenario you describe (compression methods without variable levels). -- Julien ÉLIE « – Tu n'as rien remarqué d'étrange chez cet Arverne ? – Oui, son accent. » (Astérix)
Technical Details
Message-ID:
<o1sp4e$1rs$1@news.trigofacile.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.(19219).mbox.7z!not-for-mailReferences:
<o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.org> <o1nglf$6bd$1@news.trigofacile.com> <o1qf7g$9jj$1@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <o1sp4e$1rs$1@news.trigofacile.com> Subject: Re: NNTP COMPRESS extension Date: Fri, 2 Dec 2016 22:30:41 +0100 From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid> References: <o1i7ev$a09$1@news.trigofacile.com> <o1j838$267$1@snarked.org> <o1nglf$6bd$1@news.trigofacile.com> <o1qf7g$9jj$1@snarked.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp,news.software.readers Organization: TrigoFACILE -- http://www.trigofacile.com/ Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 2 Dec 2016 21:29:50 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="2a01cb08012ff800e96443a5f281ea52.ipv6.abo.wanadoo.fr:2a01:cb08:12f:f800:e964:43a5:f281:ea52"; logging-data="1916"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 In-Reply-To: <o1qf7g$9jj$1@snarked.org> X-Received-Bytes: 2879 X-Received-Body-CRC: 4043863093