Article View: news.software.readers
Article #199348Re: slrn, expensive scoring, localhost (was: Pan and SLRN score files - The difference?)
From: Peter J Ross
Date: Fri, 11 May 2007 12:37
Date: Fri, 11 May 2007 12:37
93 lines
4224 bytes
4224 bytes
In news.software.readers on Thu, 10 May 2007 20:40:24 +0100, Adam Funk <a24061@ducksburg.com> wrote: > On 2007-05-10, Troy Piggins wrote: > >>> How do I test that? With a stopwatch? (I must be missing something >>> here.) >> >> All you need to do is make a rule in a group that regularly has >> crossposts in it. >> >> What you are looking for is a performance difference from your >> scorefile matching Xref headers versus Newsgroup headers. Scores >> are implemented when going from group mode to article mode. I >> would think that most of the time Xref is matched, and entering >> article mode from group mode would be quite fast. >> >> If for some reason it is noticeably slower than usual, check the >> headers of articles of the score you assigned and see if they >> contain no Xref headers, but do contain Newsgroups headers from >> the score rule. > > That's more or less what I meant by "with a stopwatch". Since I use > slrn and leafnode on the same machine (sometimes in an ssh session), > I'd be surprised if expensive scoring made any noticeable difference > so maybe I should stop caring. Leafnode 2 distinguishes between cheap and expensive scoring. newsgroups = .* pattern = ^Xref:.*warez.*$ action = kill newsgroups = .* pattern = ^Newsgroups:.*warez.*$ action = kill The first rule uses XOVER and doesn't retrieve matching articles. The second rule is checked after the articles have been retrieved, so the order is important if you use both. All the expensive "kill" rules should appear after all the cheap "kill" rules. In particular, I don't recommend this: newsgroups = .* pattern = ^(Xref|Newsgroups):.*warez.*$ action = kill unless no other "kill" rules follow. I don't know if the same applies in Leafnode 1. > Anyone know if this has been tested? It has now. ;-) First I tried alt.usenet.kooks, where almost all articles are crossposted. % test one Score: -1 Xref: :.*: % Normal speed, but misses a few. % test two Score: -1 Newsgroups: , % Much slower but catches everything. % test three Score:: -1 Newsgroups: , Xref: :.*: % As slow as test two - in theory it should be a little slower, but a % slow CPU would be needed to observe the difference. % test four Score:: -1 Xref: :.: Newsgroups: , % Almost as fast as test one. Next I tried the same tests in news.software.readers, where few articles are crossposted. Test four was almost as slow as tests two and three. So the scope of such rules should be defined as something other than [*] in order to avoid wasting time when loading groups where they aren't needed. -- PJR :-)
Technical Details
Message-ID:
<slrnf48ose.3db.pjr@pjr.gotdns.org>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!nx01.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mailReferences:
<pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.com> <Xns992C6512F4937emteedeeinvalid@85.227.11.7> <20070510100835@usenet.piggo.com> <a1vah4-hvv.ln1@news.ducksburg.com> <20070510221230@usenet.piggo.com> <829ch4-9jb.ln1@news.ducksburg.com>Show Full Headers
Complete Article Headers
Message-ID: <slrnf48ose.3db.pjr@pjr.gotdns.org> Subject: Re: slrn, expensive scoring, localhost (was: Pan and SLRN score files - The difference?) Date: Fri, 11 May 2007 12:37:42 +0000 From: Peter J Ross <pjr@example.invalid> References: <pan.2007.05.03.11.40.26.188353@Cuppa.tea> <pan.2007.05.03.15.06.43.187000@emteedee.invalid> <slrnf3k3il.j5l.no.spam@thurston.blinkynet.net> <Xns992AE07C8965Demteedee@news.datemas.de> <slrnf41o7n.b2v.pjr@pjr.gotdns.org> <ts89h4-skf.ln1@news.ducksburg.com> <Xns992C6512F4937emteedeeinvalid@85.227.11.7> <20070510100835@usenet.piggo.com> <a1vah4-hvv.ln1@news.ducksburg.com> <20070510221230@usenet.piggo.com> <829ch4-9jb.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!nx01.iad01.newshosting.com!newshosting.com!news-out.octanews.net!indigo.octanews.net!authen.yellow.readfreenews.net.POSTED!not-for-mail Newsgroups: news.software.readers Reply-To: pjr.spam@gmail.com User-Agent: slrn/0.9.8.1pl2 (Debian) Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 93 Organization: Read Free News NNTP-Posting-Date: 11 May 2007 07:37:42 CDT X-Trace: DXC=adl?HefOK[PcoPSKfN>35S]AGWjF5PjPY465Ue@WB_5_Dk<i^O2O?X^26Z<EbT:a\UlV3mi\haFgX3V78HOHRTY_XeWHE\FokSP