Article View: news.software.readers
Article #43208Re: SLRN Scorefile Slowness
From: Dawn Owens-Nicholson
Date: Sat, 12 Sep 1998 00:00
Date: Sat, 12 Sep 1998 00:00
115 lines
5314 bytes
5314 bytes
Kurt Wall <kwall@uswest.net> wrote:
> I thought about doing so [including my scorefile] and orginially included
> it before deciding to delete it. It's below. Sorry for the inconvenience.
Not a problem, it just lets us help you more by being more specific. I'll
go through it and make some suggestions along the way. You should read
"Mastering Regular Expressions" (ISBN 1-56592-257-3). It's not S-Lang
specific, it leans toward Perl regexes, but it has a lot of good ideas and
good explanations on how regular expression parsers work.
> % Note: Originally, I had the first section set up as individual
> % lines, ie
> % Score: -9999
> % From: bonehead
> %
> % Score: -9999
> % Subject: linuxcad
> % -etc-
> % Doesn't seem to make a difference either way, though.
True. The lines matching "^[^ \t]*Score::? ?[-=+]?\d+" separate scores
within a group.
> % Don't EVER want to see these posts or posters
> Score:: -9999
I suggest using =-9999 instead of -9999. It's completely optional, but in
the future slrn might treat the kill score like every other score and only
consider killing an article after score processing for that article is
complete ("=" forces this completion). As it is now, subtracting 9,999
points is magical--it kills the article even if there's another score after
it that adds or subtracts more points. I also think =-9999 is slightly more
self-documenting since it makes me think of what's so special about
assigning -9,999 points (as opposed to subtracting 9,999 points).
> From: homayoun
> From: Sforge
> From: idsonline.com
I suggest making this match domain names more closely:
From: @idsonline\.com
The period is a regex wildcard that matches almost any character, I don't
recommend leaving it unescaped (but it's unlikely it'll match anything but a
dot here). Also, if people from this domain post with anti-spam stuff
between the "@" and "idsonline.com", you could use "From:
@.*idsonline\.com". I think you were thinking "*" (a wildcard in many
shells) means the same thing in regular expressions. It doesn't. ".*"
means "any number of characters".
> Subject: linuxcad
> From: Dana Booth
> Subject: test
I don't know if this matters to you, but slrn score matching is
case-insensitive by default. You can turn on case sensitivity with "\c"
(and off again in the same regex with "\C"). Switching to case-sensitive
processing doesn't carry over to the next regex, so:
From: \cDana Booth
Subject: test
the "test" regex will still match "Test" and "TEST", for instance.
> Newsgroups: advocacy
> Newsgroups: sucks
This is most likely why newsreading is so slow for you--Newsgroups: is
*probably not* an overview header on your news server which means slrn
either has to use XHDR to get the Newsgroups: header data or download the
entire set of headers for all the articles slrn has to score. Since you
score on Newsgroups: for all newsgroups (this appeared in the score
applicable to "[*]" groups), entering *any* group is slow. You could change
this to Xref:, but then you wouldn't kill crossposts if your site doesn't
get the groups to which these articles are crossposted. If your site gets a
reasonably large feed, changing this to Xref: should help a great deal.
> Subject: ^KDE
> Subject: KDE
> Subject: ^Re:*KDE
I think you can get these with one regex instead of three:
Subject: \<KDE\>
This will catch "KDE" *as a word* anywhere in the Subject: header. The same
goes for your PPP, slrn and linux (in comp.databases.informix) scores. You
don't need both \< and \>, so if you find people combining "KDE" with other
words like "KDEriffic!", and you want to skip those too, you could leave off
either word border or perhaps use "KDE" alone.
> [news.software.readers]
> % Catch stuff for SLRN
> Score: 9999
> Subject: slrn
I suggest using the word borders around slrn and including "S-?Lang":
Subject: \<slrn\>
Subject: \<s-?lang\>
I don't recall the last S-Lang discussion in news.software.readers that
wasn't slrn-specific.
As for the speed issue, aside from scoring on Newsgroups:, this scorefile
doesn't look like it should pose any further speed problems. Another
possibility is your news server is sending the header data to you very
slowly. This would also lengthen the entire process of entering a group.
There's nothing slrn can do in this case--slrn can only receive header data
as fast as the data is being sent.
Hope this helps!
Technical Details
Message-ID:
<slrn6vlmgp.dl3.bluemoon@ux6.cso.uiuc.edu>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:
<35faa843.1@news3.uswest.net> <slrn6vlc0e.8d5.bluemoon@ux6.cso.uiuc.edu> <35fac83b.0@news3.uswest.net>Show Full Headers
Complete Article Headers
Message-ID: <slrn6vlmgp.dl3.bluemoon@ux6.cso.uiuc.edu> Subject: Re: SLRN Scorefile Slowness Date: Sat, 12 Sep 1998 00:00:00 +0000 From: bluemoon@ux6.cso.uiuc.edu (Dawn Owens-Nicholson) References: <35faa843.1@news3.uswest.net> <slrn6vlc0e.8d5.bluemoon@ux6.cso.uiuc.edu> <35fac83b.0@news3.uswest.net> 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: 390504172 Organization: University of Illinois at Urbana-Champaign User-Agent: slrn/0.9.5.3 (UNIX) Newsgroups: news.software.readers