From: Jamey Cribbs Date: 2006-05-18T02:38:44+09:00 Subject: Re: ruby sdbm library reliable? Kirk Haines wrote: > I wrote something a while back that might be helpful (or not). I wanted a > lightweight mechanism to persist data to disk via a hashlike interface. I > didn't want to use pstore because one pays a pretty high cost for each > transaction once the data store gets any significant amount of data in it, > and one has to go through extra effort to make pstore multiprocess safe. I > also wanted it to have flat RAM usage, regardless of the number of items in > the data store. > > What I ended up with is something that can be used as an LRU cache or simply a > hash. It is completely disk based and is multithread/multiprocess safe. It > still needs some love, but it works. > > It's slower than pstore (when starting a transaction, performaing an action, > closing a transaction) for small numbers of items in the data store, and much > faster than pstore once the data store has a few thousand items. > > I'm planning on packaging it up as a seperate micropackage in the IOWA area on > Rubyforge. It's probably no faster than Kirbybase is now, but if it might be > useful in some capacity, I'll bump that up on my priority list. > This sounds really interesting. Thanks, Kirk! Jamey Confidentiality Notice: This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain confidential and/or privileged information. If you are not the intended recipient(s), you are hereby notified that any dissemination, unauthorized review, use, disclosure or distribution of this email and any materials contained in any attachments is prohibited. If you receive this message in error, or are not the intended recipient(s), please immediately notify the sender by email and destroy all copies of the original message, including attachments.