Article View: news.software.readers
Article #22161Re: slrn and Xref
From: Olly Betts
Date: Tue, 28 May 1996 00:00
Date: Tue, 28 May 1996 00:00
51 lines
2567 bytes
2567 bytes
In article <slrn4qls1m.stq.knaff@choiseul.inrialpes.fr>,
Alain Knaff <Alain.Knaff@imag.fr> wrote:
>In <4oeg8n$lbn@sunforest.mantis.co.uk>, Olly Betts <olly@mantis.co.uk> wrote:
>:It would be worth patching the code to use XHDR if it only needs one extra
>:header, as that's pretty much a gain all-round.
>
> Or make this configurable via .slrnrc. When browsing news over the
>modem, or from a far-away server, communication cost *is* the limiting
>factor.
For some people it will be. I'm not convinced it's as clear-cut as you
though. Modems are pretty fast these days, and a far-away server is likely
to be a public access one (otherwise you'd use a nearer one), and so rather
overloaded. It also depends how expensive opening a file is, since that's
what the server will be doing lots of.
>Moreover, a little extra load on the server may also help to
>convince the news administrator to carry a more complete overview file
Except that INN doesn't keep a record of what people request via XHDR...
Actually, I spotted something interesting in score.c, near the end of the
slrn_open_score function:
[...]
if ((generic == 0)
|| (0 == (Slrn_Perform_Scoring & SLRN_EXPENSIVE_SCORING)))
return 1;
if ((generic >= 1) || !Slrn_NNTP_Has_XOver || !nntp_has_cmd ("XHDR"))
{
Slrn_Score_After_XOver = 0;
nntp_open_suspend_xover ();
}
return 1;
}
Where generic is the number of non-XOVER headers, so change "(generic >= 1)"
to "(generic > SLRN_XHDR_MAX)" and somewhere appropriate add:
#define SLRN_XHDR_MAX 1 /* threshold for XOVER+XHDR versus HEAD */
Having looked at the relevant code elsewhere, I reckon it'll work, but I've
not had a chance to test it.
Olly
--
cool wet grass cool wet grass cool wet grass cool wet grass cool wet grass
Technical Details
Message-ID:
<19960528140556.olly@mantis.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.readers.mbox.zip!not-for-mailReferences:
<slrn4q5oe9.1g7.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn4qfdvg.6v.leitner@xorn.prz.tu-berlin.de> <4oeg8n$lbn@sunforest.mantis.co.uk> <slrn4qls1m.stq.knaff@choiseul.inrialpes.fr>Show Full Headers
Complete Article Headers
Message-ID: <19960528140556.olly@mantis.co.uk> Subject: Re: slrn and Xref Date: Tue, 28 May 1996 00:00:00 +0000 From: olly@mantis.co.uk (Olly Betts) References: <slrn4q5oe9.1g7.dupuis@pc-dupuis.lei.ucl.ac.be> <slrn4qfdvg.6v.leitner@xorn.prz.tu-berlin.de> <4oeg8n$lbn@sunforest.mantis.co.uk> <slrn4qls1m.stq.knaff@choiseul.inrialpes.fr> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.mbox.zip!not-for-mail X-Deja-AN: 157158148 Content-type: text/plain; charset=iso-8859-1 Organization: techn-ol-ogy Mime-version: 1.0 Newsgroups: news.software.readers