Article View: news.software.readers
Article #192899Re: [slrn] Cheap & expensive scoring.
From: Peter J Ross
Date: Wed, 22 Nov 2006 13:42
Date: Wed, 22 Nov 2006 13:42
60 lines
3635 bytes
3635 bytes
On Tue, 21 Nov 2006 20:31:24 +0000, Adam Funk <a24061@yahoo.com> wrote
in news.software.readers:
> As I understand it, "cheap" scoring rules are the ones that refer only
> to the headers that come in the XOVER information from the server,
> whereas "expensive" rules require slrn to download the whole article.
> Is that correct?
Almost, except that when scoring expensively Slrn downloads only the
single extra header required for score-matching, as long as the server
supports the XHDR command. If XHDR doesn't work on the server, HEAD is
used to retrieve all headers instead. The whole article including the
body isn't downloaded (with ARTICLE) until you want to read it.
> Does that mean that if you have *any* expensive rules in your
> scorefile, slrn has to download all the full articles in groups
> affected by those rules? Or does it score cheaply then adjust an
> article's score subsequently when it downloads the whole article at
> the user's request?
All scorefile processing is done when you enter a group. As I
understand it, possibly incorrectly, this is the order in which the
NNTP commands are used:
1. LISTGROUP is used to update the list of articles in the group.
2. XOVER is used to retrieve the overview headers for each article.
3. If an additional header is needed for scoring, XHDR is used to
retrieve only that header, and then repeated for any further headers
that are needed. I *think* XHDR is used only if the article doesn't
already have a fixed score based on other headers: e.g. it isn't
necessary to retrieve the extra header if a "Score: =-9999" rule
applies, but it is necessary if there's no "=" prefixed to the number.
3a. If XHDR is unavailable, HEAD is used instead and all the article's
headers are retrieved.
3b. Incidentally, the new RFC 3977 introduces HDR and LIST HEADERS as
substitutes for the XHDR extension. I'm not sure how much difference
this will make in future.
4. When you select an article to read, ARTICLE is used to retrieve
full headers and body.
The above is one of the reasons why "set prefer_head 1" may or may not
speed things up: with some scorefiles HEAD is quicker than XOVER +
XHDR, with others not. There are other factors, such as the speed of
your connection, the time the server takes to respond to each command,
and of course the subjective impression that waiting five minutes for
the list of articles to appear is wasting time even if it saves time
in the end.
PJR :-)
--
_ _(o)_(o)_ _ | The fool hath said in his heart, "There is no Cabal."
._\`:_ F S M _:' \_, | FSM: <http://www.venganza.org/>
/ (`---'\ `-. | AUK: <http://www.netcabal.com/auk/>
,-` _) (_, F_P | PJR: <http://insurgent.org/~pjr/>
Technical Details
Message-ID:
<slrnem8kug.5h3.pjr@nntp.alcatroll.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!msrn-in!news.alt.net!nntp.alcatroll.com!not-for-mailReferences:
<s94c34-igh.ln1@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnem8kug.5h3.pjr@nntp.alcatroll.com> Subject: Re: [slrn] Cheap & expensive scoring. Date: Wed, 22 Nov 2006 13:42:26 +0000 From: Peter J Ross <pjr@kookbusters.org> References: <s94c34-igh.ln1@news.ducksburg.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newshub.sdsu.edu!msrtrans!msrn-in!news.alt.net!nntp.alcatroll.com!not-for-mail Newsgroups: news.software.readers Organization: Cabal Obsidian Order [TINCOO] Lines: 60 Reply-To: pjr@insurgent.org X-Operating-System: Debian GNU/Linux (Etch/Testing) X-Kernel: Linux 2.6.17-pjr4 User-Agent: slrn/0.9.8.1pl1 (Debian)