Article View: news.software.nntp
Article #87224Re: About compression with NNTP
From: Michael Baeuerle
Date: Sat, 14 Nov 2015 11:52
Date: Sat, 14 Nov 2015 11:52
37 lines
3147 bytes
3147 bytes
D. Stussy wrote:
>
> [...] there's
> another issue to consider: Compression is only beneficial when it
> results in a shorter transmission length than the uncompressed data.
> With short commands (i.e. less than 30 characters), depending on the
> actual data and the compression algorithm used, the compressed version
> of the data is likely to be equal or larger -- simply because there's
> not enough data to make it useful - i.e. result in a shorter string. I
> can't speak for gzip because I don't know its algorithm, but LZW
> algorithms (e.g. "deflate")
Note that DEFLATE/LZ77 (used in gzip) is not the same as LZW/LZ78 (used
in compress).
> do expand on a small amount of data,
> especially where there are insufficient repeating sequences for
> compression to be beneficial.
Quoted from RFC1951 (DEFLATE/LZ77):
|
| A simple counting argument shows that no lossless compression
| algorithm can compress every possible input data set. For the
| format defined here, the worst case expansion is 5 bytes per 32K-
| byte block, i.e., a size increase of 0.015% for large data sets.
^^^^^^^^^^^^^^^^^^^^^^^^^^
0.015% would be no problem, but the stated "large data sets" are
the opposize of single, small commands.
Do sombody know the behaviour for small data sizes?
--
Sorry, aber mit der Einstellung würden wir heute aus Sicherheitsgründen
noch auf dem Baum sitzen. Wer etwas Neues schaffen will, muß auch was
wagen - aber da heute Kinder schon zu Fuß mit Helm rumlaufen gilt das
wohl nicht mehr... [Eric Brücklmeier in dse]
Technical Details
Message-ID:
<AABWRxtFZagAAEeU.A1.flnews@WStation4.micha.freeshell.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-mailReferences:
<mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <AABWH9TID0cAAAnW.A1.flnews@WStation3.stz-e.de> <mvrle0$h20$1@news.trigofacile.com> <AABWIiKDl1EAAEcG.A1.flnews@WStation4.micha.freeshell.org> <n00o8d$5ui$1@news.trigofacile.com> <AABWJLfp/pwAAAn0.A1.flnews@WStation3.stz-e.de> <n03jk8$b2u$1@news.trigofacile.com> <AABWJgKBjCwAAAnv.A1.flnews@WStation3.stz-e.de> <n06897$9he$2@news.trigofacile.com> <n1vneo$228$1@news.trigofacile.com> <n26mjn$k03$2@snarked.org>Show Full Headers
Complete Article Headers
Message-ID: <AABWRxtFZagAAEeU.A1.flnews@WStation4.micha.freeshell.org> Subject: Re: About compression with NNTP Date: Sat, 14 Nov 2015 11:52:53 -0000 From: Michael Baeuerle <michael.baeuerle@gmx.net> References: <mvjp3s$n0u$1@news.trigofacile.com> <AABWHiG/QCkAACAT.A1.flnews@WStation2.stz-e.de> <mvmahl$iou$1@news.trigofacile.com> <87si5d41ll.fsf@hope.eyrie.org> <AABWH9TID0cAAAnW.A1.flnews@WStation3.stz-e.de> <mvrle0$h20$1@news.trigofacile.com> <AABWIiKDl1EAAEcG.A1.flnews@WStation4.micha.freeshell.org> <n00o8d$5ui$1@news.trigofacile.com> <AABWJLfp/pwAAAn0.A1.flnews@WStation3.stz-e.de> <n03jk8$b2u$1@news.trigofacile.com> <AABWJgKBjCwAAAnv.A1.flnews@WStation3.stz-e.de> <n06897$9he$2@news.trigofacile.com> <n1vneo$228$1@news.trigofacile.com> <n26mjn$k03$2@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 Lines: 35 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=fixed Content-Transfer-Encoding: 8bit X-Trace: individual.net WD8iEjc8t0Rh8+b+Ltmh6wsXVI1gv/amdmNTCT0hURcs7qRdTW X-Orig-Path: not-for-mail Cancel-Lock: sha1:gan7LSMcyl8IZWMaLBgGuv8kz0c= sha1:Eaev3bU9sdKMvAj/s2k6pScW+P4= Injection-Date: Sat, 14 Nov 2015 11:52:53 -0000 User-Agent: flnews/0.12 (for AIX) X-Received-Body-CRC: 2149772822 X-Received-Bytes: 3006