🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #24154

DBM and slrn

#24154
From: Christopher B. Browne
Date: Mon, 15 Jul 1996 00:00
44 lines
2381 bytes
I've been putting some work into improving how slrn handles scoring.
Particularly in terms of allowing it to do "dynamic" scoring.  Adding
scores automagically whenever you touch articles, that sort of thing.

I've got a rather growing score file, which has the *serious* downside
that it makes slrn eat *lots* of RAM.  (This is why I haven't been
pushing my patches that "improve" scoring very hard.)

Problems:

1) Right now, slrn is holding onto about 7MB of RAM, which seems a bit
much.

2) Moreover, it's loading and unloading score data, um, quite often.
Which adds to the CPU load.

3) Thirdly, there's liable to be lots of scoring rules for specific
newsgroups that are not likely to apply to the one that I'm reading.

4) Fourthly, I want to add additional scoring info in terms of statistics
on how often score rules are *activated.*  (I'd like to be able to
expire score rules that haven't been used very often.)

What this adds up to is that I'd sort of like to hold score info in a
DBM file.  (Or perhaps two of 'em.  The "master list," and one with
just the rules that apply to the current newsgroup.  Perhaps even a
third that's a "master list" with statistics.)  This can resolve 1);
cuts down on 2); might help with 3); allows me to track various stats
without significant cost in RAM.

Does anyone have comments on whether there is a DBM that is to
be preferred/disparaged?

I'd somewhat prefer using the Berkeley DB lib as it actually
permits sorted DBM files that use B-trees.  But SDBM would be
acceptable to me...
-- 
Christopher B. Browne, cbbrowne@conline.com, chris_browne@sdt.com
Web: http://www.conline.com/~cbbrowne  SAP Basis Consultant, UNIX Guy,
Linux Guy.  "Windows?  Ah...  The Athena Project from MIT..."


Technical Details
Message-ID: <slrn4uj2l5.22f.cbbrowne@dantzig.nodomain.nowhere>
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

Show Full Headers
Complete Article Headers
Message-ID: <slrn4uj2l5.22f.cbbrowne@dantzig.nodomain.nowhere>
Subject: DBM and slrn
Date: Mon, 15 Jul 1996 00:00:00 +0000
From: cbbrowne@dantzig.nodomain.nowhere (Christopher B. Browne)
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: 168770914
Organization: UniComp Technologies International Corp -- Internet Service
Reply-to: cbbrowne@conline.com
Newsgroups: news.software.readers