[Spambayes] Re: Results of playing with CDB

Neale Pickett neale@woozle.org
12 Sep 2002 17:01:41 -0700


So then, Jason R.Mastaler <jason@mastaler.com> is all like:

> Neale Pickett <neale@woozle.org> writes:
> 
> > So what I did was write a front-end that caches writes, and then
> > outputs a new database on destruction.  I wrapped it around Neil's
> > cdb.py with cdbwrap.py (now in CVS).  Then, I wrote a cdbhammie.py
> > to use it.
> >
> > So far, it outputs a *giant* text file which can be converted to cdb
> > with djb's cdbmake (much faster than doing it in Python).
> 
> Have you considered using the python-cdb module
> (http://pilcrow.madison.wi.us/#pycdb)?

Yeah, I was playing with that for a while.  Two problems:

1.  It looked like it was going to be a total pain to get that code to
    look like a dict.  Well, not a total pain.  But Neil's code was
    going to be easier.

2.  Although it claims to be licensed under the GPL, a cursory glance at
    his .c files shows they were lifted right out of DJB's cdb package.
    I don't know what his licensing terms are, and apparently neither
    does anybody else :)

So I just stuck with the one in cvs, which was good enough to do some
testing and convince me that I didn't want to use CDB :)