🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87284

Re: draft-murchison-nntp-compress-02

#87284
From: Julien ÉLIE
Date: Sun, 06 Dec 2015 20:34
38 lines
3163 bytes
Hi all,

> Notwithstanding, if we already know that such implementations exist, we
> should use Z_SYNC_FLUSH and explicitly prohibit Z_PARTIAL_FLUSH.  I have
> just sent a mail to the author of the compression part of zlib
> (Jean-Loup Gailly) to ask him whether he has a clue about that.

I've just received an answer from Mark Adler.
He has very interesting remarks for our draft:

About Z_FULL_FLUSH:
"This will always result in compression that is less effective than or 
equal to doing a Z_SYNC_FLUSH.  It will never improve compression over 
the other flushes.  Having the 32K dictionary from previous data, no 
matter how unrelated, can only help.  If there are no matching strings 
in there, then it is simply not referenced."

About Z_PARTIAL_FLUSH:
"If you are breaking things into packets that you want to be a little 
more self-contained, i.e. fully decodable upon receipt, then you would 
use Z_PARTIAL_FLUSH, or maybe Z_SYNC_FLUSH.
All of these forms of flushing are done within the constraints of the 
deflate format, as defined in RFC-1951, so all compliant decompressors 
will be able to decompress any application of these flushes."



So I think the response is pretty clear:  we should use Z_PARTIAL_FLUSH 
in all cases when wanting to flush (no need for Z_SYNC_FLUSH or 
Z_FULL_FLUSH).

-- 
Julien ÉLIE

« Mieux vaut allumer une bougie que maudire les ténèbres. » (Lao
   Zi)

Technical Details
Message-ID: <n4264c$209$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
References: <n229bp$tel$1@news.trigofacile.com> <n3d370$4bg$1@news.trigofacile.com> <AABWWsKcsJ8AAAGM.A1.flnews@WStation1.micha.freeshell.org> <n3fgba$vh4$1@news.trigofacile.com> <AABWW0vIXqsAAEWe.A1.flnews@WStation4.micha.freeshell.org> <n3fntl$8nu$1@news.trigofacile.com> <AABWXtQCnL0AAAo3.A1.flnews@WStation3.stz-e.de> <AABWXxpmm9cAABuV.A1.flnews@WStation3.stz-e.de> <n3sosp$an7$2@news.trigofacile.com> <AABWYumTqv0AAFK0.A1.flnews@WStation4.micha.freeshell.org> <n3urrv$3ip$1@news.trigofacile.com> <AABWYvNyQmkAAFK0.A1.flnews@WStation4.micha.freeshell.org> <n3vb6q$l5p$1@news.trigofacile.com>

Show Full Headers
Complete Article Headers
Message-ID: <n4264c$209$1@news.trigofacile.com>
Subject: Re: draft-murchison-nntp-compress-02
Date: Sun, 6 Dec 2015 21:34:20 +0100
From: Julien ÉLIE <iulius@nom-de-mon-site.com.invalid>
References: <n229bp$tel$1@news.trigofacile.com> <n3d370$4bg$1@news.trigofacile.com> <AABWWsKcsJ8AAAGM.A1.flnews@WStation1.micha.freeshell.org> <n3fgba$vh4$1@news.trigofacile.com> <AABWW0vIXqsAAEWe.A1.flnews@WStation4.micha.freeshell.org> <n3fntl$8nu$1@news.trigofacile.com> <AABWXtQCnL0AAAo3.A1.flnews@WStation3.stz-e.de> <AABWXxpmm9cAABuV.A1.flnews@WStation3.stz-e.de> <n3sosp$an7$2@news.trigofacile.com> <AABWYumTqv0AAFK0.A1.flnews@WStation4.micha.freeshell.org> <n3urrv$3ip$1@news.trigofacile.com> <AABWYvNyQmkAAFK0.A1.flnews@WStation4.micha.freeshell.org> <n3vb6q$l5p$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: TrigoFACILE -- http://www.trigofacile.com/
Mime-Version: 1.0
Content-Type: text/plain; charset=windows-1252; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Sun, 6 Dec 2015 20:34:20 -0000 (UTC)
Injection-Info: news.trigofacile.com; posting-account="julien"; posting-host="aaubervilliers-651-1-143-45.w83-199.abo.wanadoo.fr:83.199.238.45";
 logging-data="2057"; mail-complaints-to="abuse@trigofacile.com"
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:38.0)
 Gecko/20100101 Thunderbird/38.4.0
In-Reply-To: <n3vb6q$l5p$1@news.trigofacile.com>
X-Received-Body-CRC: 1517277313
X-Received-Bytes: 3169