Article View: news.software.nntp
Article #65616Re: Which is faster: retrieve article by article number, or by Msg-ID?
From: Juergen Helbing
Date: Wed, 04 Jun 2003 05:30
Date: Wed, 04 Jun 2003 05:30
217 lines
9336 bytes
9336 bytes
Bas Ruiter <lordsnow@home.nl> wrote: >> Single host tool: Use article numbers. >> Multi host tool: Use both. > >Article-number for the 'main' server, and Msg-ID for all other servers? Fatal approach: There is no 'main' server for a binary downloader. Most users of power-tools on Usenet are running at least 'two main-servers'... You will maintain a list of msgid->article-no relation for all hosts. But the user can switch off using that (slower) mothod. Or you'll rely only on MsgId (what I'm doing). Whenever you want to implement anything for "the main server" then you are on the wrong path. Every feature should be available for all objects. The general design approach should be 'n', not '1'. Inplementing native limitations to '1' is the most frequent source of trouble (and spaghetti) when it comes to later expansions. >What if the post(s) aren't available on the other servers - you'll get a >bucketload of errors. You'll get errors if the messages are not YET on a host. You'll get errors if the message is NO MORE on a host. You'll get errors if the newsgroup is not available on the host. You'll get problems if an article is xposted and the group you are trying is not on that host. "No such article" is the most common error code for multi-host readers. >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? I've choosen a more intelligent approach: Just one (or a user-specified amount of) host is checked with a full XOVER. All other hosts (header-filler) are asked only for article-nr + msgid with XHDR. If there are unkown msgids in those XHDR lists then XOVER commands are issued to get their full overview. You want to 'delay' the XHDR by one (or more) hours to prevent fetching a lot of single line XOVERs. My experience is that the 'filler' hosts which are asked only by XHDR are delivering only 10% of the volume (bandwidth) for header-traffic with this method. >> 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. This will be double work: You'll maintain two seperate lists. Both must be expired and maintained. The design of the header-line-management (XOVER) with pre-sorting, threading, expiry and multipart detection is _the_ central and critical design job. You should include everything you want from that list into your design from the beginning. The data-structure and handling functions must be perfectly designed. Else you'll redesign it again and again. >> 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? No. In busy binary groups there are always two or three neticens posting multiparts simultanously with different speeds. The raw header list is completely unsorted for subjects and authors. Not even the 'date' header is presorted. But Quick sort is still 'pretty good' for sorting such lists. Because it sorts in small chunks. >Making use of your code would mean >understanding every line (not such a bad thing) and then convert it to >Delphi. I see no chance for a language change. >I'm wondering what you expect though - a clone of MyNews, with a >different (hopefully, better and more user-friendly) GUI? I expect that you are getting productive within a few weeks. Writing a binary grabber takes at least two years of daily development work. If you are realizing your ideas "step-by-step" then you'll end with the same problem all other tools have: They are no longer homogenously - but seem to consist of different jobs. >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? Yes, of course you could throw away as much as you want. MyNews is designed to operate as a stand alone news-tool. The user-interface is just important for reading groups, manual downloading (mark & go) and manual cleanup. Nearly all functions can be started by the scheduler. >I like simplicity in programs - users should be bothered about the >technical stuff as little as possible. Yes - this is the design target. Unfortunately (fortunately ?) Usenet is not good enough specified to permit an 'easy' click and go design. Every programmer finds out this difficulty after some months. That's also the most important reason for the current status of most binary news tools. >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. MyNews is not designed for exchanging articles. There is no "feed" to other MyNews to prevent spammers and trolls from entering the network. >but I'm just >indicating that the "up and running in 5 minutes" statement on your >website is very optimistic). I did implement a dozen of 'predefined communities' which are autocreating newsgroups and auto-installling download options for specific Usenet and MyNews newsgroups. The "Express-Setup" was an attempt to make it easier for the 'average Joe' to enter a community: If someone starts MyNews for the very first time and enters one of the predefined communities then MyNews does everything automatically until the grouplist with the fetched headers appear. Double clicking to newsgroups open the header-list. Double clicking the header lines fetches, displays and decodes messages automatically. My experience is disappointing: The more you are doing automatically the less the users want it: Especially Usenet neticens dont want 'predefined' things and 'wizards'. They are leaving the predefined paths quickly and want to setup things manually without reading any instructions. Even total computer newbies are easier to provide with software than Usenet neticens: The combination of semi-know-how and attitude is an unbeatable challenge for programmers. (And of course everything has to be the way their former tool did it ;-) >*laughs* you're offering me 5 years of work, and I'm critisizing the >program. I must be crazy, eh? :) That's perfectly OK for me. I've stopped taking criticism personally a long time ago. (Thanks Russ ;-) >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. Sharing binaries directly by their MD5 id on a seperate channel (or a new set of NNTP-instructions) is one of the projects I'm thinking about as "True Binary Usenet". Having a set of commands which is powerful enough to fulfill large hosts needs as well as users needs is promising: NNTP in its current form is working more bad than well. The new NNTP and UseFor drafts won't offer a single step towards 'better binaries' - so the only chance will be to have 'true binary and sharing news' extensions to the current and new standards. >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? The biggest advantage of NNTP over HTTP/FTP/Kazaa/Gnutella is the combination of text and binaries in the same context (group). Every writer of a "true binary grabber" makes the big mistake to underestimate the need to talk (and replay and ask) also in the binary groups. The only thing we dont need would be 5000 splitted messages for a video in a newsgroup. We need one 'binary pointer message' in the group - and the binary msgs must be elsewhere. (And of course I'm working on this ;-) >What do you think of BitTorrent? I never heared about it. In every case: Welcome to the small crew of Binary Usenet Developers. Plenty of fun ahead ! CU -- Juergen
Technical Details
Message-ID:
<52307.463200@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!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed1.earthlink.net!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.alt.net!usenetReferences:
<npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <59408.u53201@archiver.winews.net> <80vidv0430fc2ob5gh3ila0ikcu2meb4en@4ax.com>Show Full Headers
Complete Article Headers
Message-ID: <52307.463200@archiver.winews.net> Subject: Re: Which is faster: retrieve article by article number, or by Msg-ID? Date: Wed, 04 Jun 2003 05:30:52 +0000 From: archiver@i3w.com (Juergen Helbing) References: <npf9dvsun1hdqbplg77evm6hsmd9nusdrf@4ax.com> <59408.u53201@archiver.winews.net> <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!headwall.stanford.edu!newshub.sdsu.edu!elnk-nf2-pas!newsfeed1.earthlink.net!newsfeed.earthlink.net!sjc70.webusenet.com!news.webusenet.com!feedwest.aleron.net!aleron.net!news.alt.net!usenet Newsgroups: news.software.nntp Organization: Altopia Corp. - Usenet Access - www.altopia.com Lines: 216 X-Newsreader: MyNews