Article View: news.software.nntp
Article #61980Re: Idea for a efficient quasi 8bit CTE (qp-special-lite)
From: Curt Welch
Date: Thu, 14 Nov 2002 17:33
Date: Thu, 14 Nov 2002 17:33
42 lines
3002 bytes
3002 bytes
lykas@gmx.ch (Lykas) wrote: > For a uniformaly distributed input stream the encoding overhead is > 2n/(8*256)*100%, where n is the number of critical characters. I believe it will be worse than that because you will have to re-encode the encoding bit depending on the value of the critical characters and your choice of values for the encoding bit. i.e., if you output a crtical character, then the tag bit + 7 more data bits goes into the next output byte. But if those 8 bits turn out to be a crtical character, then you have to tag that as well, etc. > For the pathological worst case the overhead is 1/8 = 12.5%. It's actually 1/7 or 14.3% isn't it? Because worst case, you could end up having to add a tag bit to every output byte so you add one bit of output overhead to every 7 input bits. > I have done some tests with n=3 (i.e. '\0', '\n', '\r') on a variety > of file types (text, mpeg, mp3, jpg, gif, png, zip, gz, ...) and have > never reached an overhead bigger than that of an uniform distribution > (0.293%). Interesting. But NNTP still requies CR LF to be added every so often, and you either must include dot in your crtical char list or do the dot escaping for NNTP, and TCP/IP adds a lot more overhead on top of that, so is there really any point in using anything more complex than yEnc when we already have a total encoding overhead which is much higher from all these other things? As a formal yEnc replacement, I think all that bit shifting is more complex than it needs to be to get the overhead low enough. I wonder if there is a simple byte oriented encoding system that could reach such low ovehead numbers without having to play bit shifting games? I wonder if there's a way to reach the same -- Curt Welch http://CurtWelch.Com/ curt@kcwc.com Webmaster for http://NewsReader.Com/
Technical Details
Message-ID:
<20021114123345.397$aD@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!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!aanews.merit.edu!newsxfer.itd.umich.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mailReferences:
<815b0091.0211140844.70201d4e@posting.google.com>Show Full Headers
Complete Article Headers
Message-ID: <20021114123345.397$aD@newsreader.com>
Subject: Re: Idea for a efficient quasi 8bit CTE (qp-special-lite)
Date: Thu, 14 Nov 2002 17:33:45 +0000
From: curt@kcwc.com (Curt Welch)
References: <815b0091.0211140844.70201d4e@posting.google.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!news1.google.com!newsfeed.stanford.edu!bloom-beacon.mit.edu!aanews.merit.edu!newsxfer.itd.umich.edu!news.maxwell.syr.edu!feed3.newsreader.com!newsreader.com!news2.newsreader.com!ellis.newsreader.com!not-for-mail
Organization: NewsReader.Com
Newsgroups: news.software.nntp
X-Trace: NewsReader.Com wl0ut4VxqAFSBYpo,UhaCrJNyF3Y_OwQC8jzMsxSKDABf3kN
X-Face: "p}G*1KH{+F7EYGKLb>ogDguabZ+%,?^epeFB!nzu`)`$=QcvL1KF6<0GH!Tbc!Sqo[|tV5
%IW48mQf3K=Ci&gZ7]]aazx@]Y-nq!r5{yH/#,?@lDdUDvOfByB2hVW0.@OM%{l/{cT'{w
X-Url: http://CurtWelch.Com/
User-Agent: NewsReader.Com
Lines: 41