Article View: news.software.readers
Article #80992Re: [slrn] persistent scoring - new patch
From: Jurriaan (note: this is a workin...
Date: Sat, 30 Jun 2001 05:22
Date: Sat, 30 Jun 2001 05:22
44 lines
2308 bytes
2308 bytes
On 30 Jun 2001 02:15:18 GMT, J.B. Nicholson-Owens <jbn@forestfield.org> wrote: > Jurriaan (note: this is a working address!) wrote: >> You'll need gdbm (a library of functions implementing a hashed database >> on a disk file from GNU). > > What's the advantage to using gdbm over S-Lang hashes saved to a file? gdbm: build key gdbm_store(dbf-file, key) S-Lang hash: build hash open correct hash file append value gdbm: build key content=gdbm_fetch(dbf-file, key) S-Lang hash: build hash open correct hash file read until we find the correct one I have no good knowledge about S-Lang hashed - are they used anywhere in slrn to write to disk? The good thing about gdbm is that it's a single file, it's well-tested, and it's easy to work with. I imagine that with S-Lang hashes, I'd have to use multiple files, one for each hash, and even then, there's no guarantee that 2 message-id's won't get the same hash. But I'd love to be proven wrong about this. Greetings, Jurriaan -- BOFH excuse #128: Power Company having EMP problems with their reactor GNU/Linux 2.4.5-ac19 SMP/ReiserFS 2x1402 bogomips load av: 0.56 0.15 0.05
Technical Details
Message-ID:
<slrn9jqo1b.48h.no_spam_here@middle.of.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!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!not-for-mailReferences:
<slrn9jp631.r8j.no_spam_here@middle.of.nowhere> <slrn9jqdf4.i17.jbn@forestfield.org>Show Full Headers
Complete Article Headers
Message-ID: <slrn9jqo1b.48h.no_spam_here@middle.of.nowhere> Subject: Re: [slrn] persistent scoring - new patch Date: Sat, 30 Jun 2001 05:22:08 +0000 From: no_spam_here@rivierenland.xs4all.nl (Jurriaan (note: this is a working address!)) References: <slrn9jp631.r8j.no_spam_here@middle.of.nowhere> <slrn9jqdf4.i17.jbn@forestfield.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.mbox.zip!archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!transit.news.xs4all.nl!not-for-mail Newsgroups: news.software.readers Organization: XS4ALL Internet BV Lines: 43 NNTP-Posting-Host: rivierenland.xs4all.nl X-Trace: news1.xs4all.nl 993878528 18441 194.109.14.47 (30 Jun 2001 05:22:08 GMT) X-Complaints-To: abuse@xs4all.nl NNTP-Posting-Date: 30 Jun 2001 05:22:08 GMT X-Face: b$-F+98,@$_I=*ODq'<K2(OA)qC&,(GP=z2^`4dwQwy&e;!|R?>")k9FH3?YC+%*kF\=<Rx"Hy2_eyMtnFSiO8 User-Agent: slrn/0.9.7.1-jwk (Linux)