Article View: news.software.nntp
Article #65586Re: Which is faster: retrieve article by article number, or by Msg-ID?
From: Bas Ruiter
Date: Sun, 01 Jun 2003 05:19
Date: Sun, 01 Jun 2003 05:19
139 lines
6619 bytes
6619 bytes
> While downloading many articles mixed from a "download queue" > it is slower because it requires always a "group" command - > and a memory which group you are currently in. right, but I assume that some optimstions are done while downloading from a que - like go through the que and only process what's in the que that has to do with the group you're in at the moment. When you're finished with the present group, start at the top of que. Repeat until que is empty. > It is ALWAYS necessary to verify whether the incoming article > is the one you wanted. Right. Noted :) > Single host tool: Use article numbers. > Multi host tool: Use both. Article-number for the 'main' server, and Msg-ID for all other servers? What if the post(s) aren't available on the other servers - you'll get a bucketload of errors. And there's also the possibility there are articles on the other srever which aren't on the 'main' server - so basically you ALWAYS do an XOVER for each group on each server? > But I'm using now the approach that 'older' headers > (read headers) are no longer visible to reach realistic > sorting and display speed. Well, when I mentioned sorting my intended purpose was to bring all similar articles together, so I can check if they are part of a multi-part post. Display comes after. > I did reduce the sorting job to the 'really necessary' part. > Now I'm having 30.000-50.000 headers (instead of the > full bunch). Yes. Download the headers, then prune as much as possible. Just work with what you need, and nothing else. > Quicksort is unbeatable for presorted lists. > But It is as bad as maxsort (n^2) for reverse sorted lists !!!! > Heapsort is unbeatable for random lists and constant sorting time. Right. The list you keep yourself will always be sorted. How about the result of XOVER? I get the impression that that too is pretty sorted already. Is that always the case? > An offer: If you want to write a binary retriever from scratch just > because you dont like the front-end (or lack of features) of > the available tools: My reason of wanting to write my own is two-fold: (1) to see if I can do it, (2) I like doing it, (3) because of NewsBin. I've been a NewsBin user for quite a while now, even tho my first impression of the program has always remained - it feels... chaotic. I don't know how else to describe it - it's as if the author started wrting a program, and then kept on adding things. It doesn't feel as ONE whole, but as something that consists many parts. The way things are in the program - it just feels totally contra-intuitive. But there's just been no serious alternative to NewsBin. (NewsPro, GrabIt, and BNR2 are also popular tho. And the new Newsleecher looks very promising!) > If you want to use Windows, then you can get a copy of > the MyNews source files and modify them to your needs. > (Borland C 4.52 or 5.0 - normal C, no C++ used.) Yes, I'm using Windows and developing for Windows and maybe for Linux too, using Delphi/Kylix. I've programmed in C before (years ago), but I've always felt it a "vague" programming language. I'm very much a fan of the Pascal-oriented languages. Making use of your code would mean understanding every line (not such a bad thing) and then convert it to Delphi. Like I said in another post just a few minutes ago - I really appreciate the offer you're making here. You're giving me 5 years of your work. I'm wondering what you expect though - a clone of MyNews, with a different (hopefully, better and more user-friendly) GUI? Of course I would love to look at your sources, but are you OK with me looking at the code, taking it apart, and just using the bits I like? I like simplicity in programs - users should be bothered about the technical stuff as little as possible. I downloaded, installed, and had a look at MyNews yesterday. I'm sure it has lots of features, but it also has lots of options. I spent 30mins just clicking thru and reading the various screens. I'm fairly savvy I thought, but it had me fairly lost too - I was looking for the way to join a MyNews network, and see if I could exchange articles with other users. I couldn't do it. (I must admit, I was also doing other things at the time.. but I'm just indicating that the "up and running in 5 minutes" statement on your website is very optimistic). *laughs* you're offering me 5 years of work, and I'm critisizing the program. I must be crazy, eh? :) I have also thought about the "sharing with others" idea for my program. With this xBin idea around, it all starts to sound all very similar anyway. Not sure if I would use NNTP tho, maybe FTP? But I guess you used NNTP as a basis for your communities because of the fact you can 'talk' too? What do you think of BitTorrent? > However its user-interface is really crazy. I guess it works great once you know where everything is, and you know what it does. But looking at it the first time, it looks extremely intimidating. OK, that's it for now... 7am - time for bed :) Later today I should get the components for my new PC (Abit nForce2 motherboard, 512MB DDR, 1700+ o/c to 2500+, 120GB HD). Yes! Then the PC I'm on now (p233, 64MB, 1GB HD) will probably replace the freesco router. Have a good day all. -- Bas Ruiter e-Mail: lordsnow@home.nl www: http://members.home.nl/lordsnow
Technical Details
Message-ID:
<80vidv0430fc2ob5gh3ila0ikcu2meb4en@4ax.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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newshub1.home.nl!home.nl!not-for-mailReferences:
<npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <59408.u53201@archiver.winews.net>Show Full Headers
Complete Article Headers
Message-ID: <80vidv0430fc2ob5gh3ila0ikcu2meb4en@4ax.com> Subject: Re: Which is faster: retrieve article by article number, or by Msg-ID? Date: Sun, 01 Jun 2003 07:19:02 +0200 From: Bas Ruiter <lordsnow@home.nl> References: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <59408.u53201@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!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.multikabel.nl!newshub1.home.nl!home.nl!not-for-mail Newsgroups: news.software.nntp Organization: @Home Benelux Lines: 138 NNTP-Posting-Host: cc7224-a.ensch1.ov.home.nl Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: news4.tilbu1.nb.home.nl 1054445849 9348 212.120.80.34 (1 Jun 2003 05:37:29 GMT) X-Complaints-To: abuse@home.nl NNTP-Posting-Date: Sun, 1 Jun 2003 05:37:29 +0000 (UTC) X-Newsreader: Forte Agent 1.91/32.564