Article View: news.software.nntp
Article #87239Re: About compression ratio
From: Ken Murchison
Date: Mon, 16 Nov 2015 21:05
Date: Mon, 16 Nov 2015 21:05
39 lines
2454 bytes
2454 bytes
On 11/16/2015 02:07 PM, Julien ΓLIE wrote: > Hi all, > > I've just tested various compression levels for a set of NNTP commands and answers. > > In summary: > * 1-line commands and answers have a greater size when compressed; This is certainly be true for short sessions such as your tests. I would expect the compression ratios to get a little better over time as the dictionary builds up and there is some repetition in the traffic, but I could be wrong. > * the RFC should not recommend level 0 when no compression is desired but level 1; The documentation clearly states: "0 gives no compression at all (the input data is simply copied a block at a time)". Even if there are an additional 4 bytes in the output, the receiver doesn't have to decode any of the bits, its a simple copy. I don't know why there are an extra 4 bytes. I would have to read RFC 1951 and the zlib docs further. > * for articles having base64 attachments, the compression ratio is 75% so it is still desirable to compress them; Good to know. > * answers to LIST (of all sorts like ACTIVE, ACTIVE.TIMES, COUNTS, NEWSGROUPS, and even MODERATORS or OVERVIEW.FMT), LISTGROUP, HDR, OVER and NEWNEWS commands are worth compressing. As expected. -- Kenneth Murchison Principal Systems Software Engineer Carnegie Mellon University
Technical Details
Message-ID:
<n2dger$bo1$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:
<n2d9ha$41r$1@news.trigofacile.com>Show Full Headers
Complete Article Headers
Message-ID: <n2dger$bo1$1@news.trigofacile.com> Subject: Re: About compression ratio Date: Mon, 16 Nov 2015 16:05:30 -0500 From: Ken Murchison <murch@andrew.cmu.edu> References: <n2d9ha$41r$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-mail Newsgroups: news.software.nntp Organization: Carnegie Mellon University Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Mon, 16 Nov 2015 21:05:31 -0000 (UTC) Injection-Info: news.trigofacile.com; posting-account="Ken"; posting-host="cpe-76-180-151-43.buffalo.res.rr.com:76.180.151.43"; logging-data="12033"; mail-complaints-to="abuse@trigofacile.com" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 In-Reply-To: <n2d9ha$41r$1@news.trigofacile.com> X-Received-Body-CRC: 1843434072 X-Received-Bytes: 2452