Article View: news.software.nntp
Article #57969Re: A better way to post binaries
From: Andrew Gierth
Date: Sun, 07 Apr 2002 05:49
Date: Sun, 07 Apr 2002 05:49
36 lines
2715 bytes
2715 bytes
>>>>> "Juergen" == Juergen Helbing <archiver@i3w.com> writes: Juergen> Now they download 10.200 headers. 1000 are "predefined" - Juergen> and you need an XOVER for 9.200. If the headers are strongly Juergen> mixed (what they usually are) then at least 1000 XOVER Juergen> commands are necessary. don't be silly. Use the following algorithm: - as a (possibly tunable) parameter, decide how many overview entries represents roughly the same "cost" as issuing a new XOVER command. This may vary depending on whether your objective is least-time or least-bytes, and may also vary depending on line speed. - given that we need to download the ranges a1..b1, a2..b2, a3..b3, ... up to an..bn, where a1 <= b1 < a2 <= b2 < ...etc., proceed as follows: for each range, look at the value of a[i+1] - b[i], and if it's less than the cost parameter, then merge the two ranges into one (i.e. accepting that some unnecessary entries will be downloaded to save time) - when you've computed the final list of ranges, then pipeline the resulting XOVER commands Some newsreaders (e.g. Gnus, which I use) already use this method when entering a group which has already been partially read. Juergen> I dont want to imagine how long it would take to fetch then Juergen> headers for a newsgroup. in the worst case, where the 1000 entries you don't want are scattered individually, then it would take exactly as long as before. -- Andrew.
Technical Details
Message-ID:
<87u1qo83d4.fsf@erlenstar.demon.co.uk>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!lnsnews.lns.cornell.edu!news.litech.org!news-feed.riddles.org.uk!news-spur.riddles.org.uk!newsmonsterReferences:
<1017777829.201228@ok-corral.gunslinger.net> <3915b.342201@archiver.winews.net> <1017854668.242120@ok-corral.gunslinger.net> <4219b.542200@archiver.winews.net> <1018039603.718251@ok-corral.gunslinger.net> <53518.64220a@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <87u1qo83d4.fsf@erlenstar.demon.co.uk> Subject: Re: A better way to post binaries Date: Sun, 07 Apr 2002 05:49:43 +0000 From: Andrew Gierth <andrew@erlenstar.demon.co.uk> References: <1017777829.201228@ok-corral.gunslinger.net> <3915b.342201@archiver.winews.net> <1017854668.242120@ok-corral.gunslinger.net> <4219b.542200@archiver.winews.net> <1018039603.718251@ok-corral.gunslinger.net> <53518.64220a@archiver.winews.net> 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!lnsnews.lns.cornell.edu!news.litech.org!news-feed.riddles.org.uk!news-spur.riddles.org.uk!newsmonster Newsgroups: news.software.nntp Organization: disorganised Lines: 35 X-Mayan-Date: Long count = 12.19.9.2.7; tzolkin = 4 Manik; haab = 0 Pop X-Pgp-0x0E9FFBE9: 87 25 7F 14 41 24 B3 51 E0 19 8B DE 49 74 0C 29 X-Attribution: AG X-P-Persistent-Headers: are a bad idea. X-Newsreader: Gnus v5.5/Emacs 20.2 X-Complaints-To: abuse@news-spur.riddles.org.uk X-Post-Filter: postfilter v0.6 alpha