Article View: news.software.readers
Article #5554Re: OS/2 based news readers
From: Wayne Davison
Date: Thu, 26 Aug 1993 18:53
Date: Thu, 26 Aug 1993 18:53
43 lines
2867 bytes
2867 bytes
According to Albert Crosby <acrosby@uafhp.uark.edu>: > it looks like true threading would > place an incredible burden on the local client. Not really. It does require you to keep a hash of all message-ids in a group and link them all together using a decent algorithm, but I find that the time it takes to just cache the overview data is not much less than the time it takes to link all the data together. > Is there something about threading w/ overview that I'm missing? Using an overview file doesn't make it any easier, just faster. If you don't have a database file (thread or overview) trn defaults to threading the unread articles first and then trundles through the rest of the articles in the background (while the user is doing other things) looking for connections in the unread article's ancestors. This process is rather slow since it involves opening hundreds of articles (usually). The overview file simply gives you a fast read of all the article data in a group that you need to thread them together. So much so that I recommend overview-users use trn's -a option (thread the whole group on entry, not just the unread articles) -- it doesn't take that much longer. > If you have it, a simple overview "algorithm" would be great! Or is > there a guide for doing this somewhere? There is a VERY simple threading algorithm in the nov.dist.tar.Z file found on world.std.com (src/news/nov.dist.tar.Z). If you look in the demo directory you'll find a little program that uses a "novthread()" library function to link all the articles in a group together. It's not robust enough for real-world usage, but it could get you started in the right direction. There's also a threading algorithm I'm quite fond of in trn 3 -- see the file rt-process.c for the guts of it -- it takes into account missing articles, out of order arrival, subject association as a backup, and deals with many common reference-line problems with reasonable solutions. It even has a few comments describing what it is doing (just a few, though (-: ). -- Wayne Davison davison@borland.com
Technical Details
Message-ID:
<CCDr4n.9AF@borland.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davisonReferences:
<1993Aug19.194803.2669@choreo.ca> <25fpr6$sh4@daffy.ldp.com> <25hdcd$7bn@thebes.cc.waikato.ac.nz> <25isgp$qae@uafhp.uark.edu>Show Full Headers
Complete Article Headers
Message-ID: <CCDr4n.9AF@borland.com> Subject: Re: OS/2 based news readers Date: Thu, 26 Aug 1993 18:53:10 GMT From: davison@borland.com (Wayne Davison) References: <1993Aug19.194803.2669@choreo.ca> <25fpr6$sh4@daffy.ldp.com> <25hdcd$7bn@thebes.cc.waikato.ac.nz> <25isgp$qae@uafhp.uark.edu> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!archive!mbox2nntp-news.software.readers.mbox.zip!gmd.de!xlink.net!howland.reston.ans.net!usc!elroy.jpl.nasa.gov!decwrl!borland.com!davison Newsgroups: news.software.readers,comp.os.os2.apps Organization: Borland International Lines: 43