🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #57338

Re: yenc - has anybody else noticed this?

#57338
From: Nunya Biznis
Date: Mon, 18 Mar 2002 19:29
51 lines
3547 bytes
On Mon, 18 Mar 2002 19:07:40 GMT, lordsnow@home.nl (=-lordsnow-=) wrote:

>
>> With only a single part in hand, I can create the output
>> file, pre-extend it to the correct size, and insert the
>> decoded data from the part into it's proper place in the
>> file.
>
>Better would be to use an index file, which keeps track of
>the byte ranges that have been downloaded. When the whole
>file has been covered it can then reconstruct it.
>
>This prevents diskspace being tied up with what's really
>'empty' data when you extend a file to it's full size before
>it's completely downloaded.
>

I don't think the index file would offer any real economy.
Such a file would grow to be at least the size of the file
being downloaded, plus the index overhead.  When you have all
the parts and are creating the "real" output file, you need
(briefly) twice the target file size plus the index overhead.

Putting the parts directly into the "real" output file will use
more space up front, but you never need more space than the size
of the output file plus the size of one part.

>> I think Juergen made one mistake, though.  The complete
>> file CRC is only in the last part.  I would have put it
>> into the =ybegin line of _every_ part to reduce the chances
>> of mixing parts that don't really belong to the same file.
>
>All parts that belong together would have a common
>name=<filename> parameter in the =ybegin line.
>

I was thinking of the possibility that more than one
version of the same file might be in circulation.  It
might be unlikely that both versions would have the 
same size, but if they did there would be the risk
of combining parts that didn't belong together. 

Having the whole-file CRC in every part might also 
simplify handling of the case where multiple unrelated
files having the same name are being decoded at the same
time.

yenc will probably work OK the way it is, but I think it
could be a little more robust if the whole-file CRC was
carried in every part.
Technical Details
Message-ID: <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!news.voicenet.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin4.nnrp.aus1.giganews.com.POSTED!not-for-mail
References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news>

Show Full Headers
Complete Article Headers
Message-ID: <mgfc9uc7d9l0n2tprssu340g22r96uuseu@4ax.com>
Subject: Re: yenc - has anybody else noticed this?
Date: Mon, 18 Mar 2002 19:29:45 GMT
From: Nunya Biznis <not@liberty.to.tell>
References: <us1c9ucatbi49fiq685eolg8jf73sjcta0@4ax.com> <3c98344b.1993605@news>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!nntp.abs.net!news.voicenet.com!nntp2.aus1.giganews.com!nntp.giganews.com!nntp3.aus1.giganews.com!bin4.nnrp.aus1.giganews.com.POSTED!not-for-mail
Newsgroups: alt.usenet.offline-reader.forte-agent,news.software.nntp
X-Newsreader: Forte Agent 1.8/32.548
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 50
NNTP-Posting-Date: Mon, 18 Mar 2002 13:29:45 CST
Organization: Giganews.Com - Premium News Outsourcing
X-Trace: sv3-TEUZxv04EjGNgBKaoV8B94/4aEbxsmplmwD/h1BS9YydJv5cLhdMzpb/pK5S1uIFWgJ9xvv7n+1LWNI!siyQF7yzekDSo0pRCJORvYGXlBBh1tODvB6dWlKbukqauDB+e0rcX8B6TcPKUw3y79g=
X-Complaints-To: abuse@GigaNews.Com
X-DMCA-Notifications: http://www.giganews.com/info/dmca.html
X-Abuse-Info: Please be sure to forward a copy of ALL headers
X-Abuse-Info: Otherwise we will be unable to process your complaint properly