🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.readers
2 messages
2 total messages Started by Christopher B. Browne Mon, 15 Jul 1996 00:00
DBM and slrn
#24154
Author: 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..."


Re: DBM and slrn
#24127
Author: Christopher B. Browne
Date: Mon, 15 Jul 1996 00:00
54 lines
3061 bytes
>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.

I hate to followup on a post of my own; life.

I think I'm going to be living with the lacks I described.

The slrn scoring code is *very* much oriented towards building up a
complex pointered set of C structs that represent the "rules."

I was looking to have it look like fairly simple "blobs" of data of
which seldom-used portions could easily get dropped out to disk.
In effect, I'd like to be able to "filter" the information.
I'm fairly certain this would improve performance significantly, at
least for cases where the score file is relatively large.

Sadly, these approaches aren't too compatible with one another.
(No doubt GNUS could do it elegantly.  With the minor problem of
the LISP interpreter slowing it...)

I would suggest that building a scoring "model" and corresponding
scoring code would be a worthy sort of project.  Whether this involves:

a) Something like GroupLens where people can trade rules, or

b) Automagical scoring based on what one does with postings
(give *high* marks to author/subject if I mail/post a response; some
points for reading it; negative marks for deleting without reading), or

c) Quikscore: *slightly* interactive tagging (Hit "KH" to
give good marks, "KL" to give low marks, "KV" to give *very* good marks,
applying it to a set of tagged posts all at one shot...)

this can start to deal with the overabundance of uninteresting 
information on the Internet.

It would even be *more* worthy to create a library that could be used
by many news readers, with a common file format (and perhaps an
internal database format ala DBM to try and keep RAM usage down).
If this is made as generic as possible (e.g. handling arbitrary
sets of header lines) it could be made further useful for other
applications.
-- 
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..."


Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads