hash table to replace Judy
Adrian Otto
aotto at aotto.com
Thu Sep 19 00:06:27 CEST 2002
Matthias,
> -----Original Message-----
> From: Matthias Andree [mailto:ma at dt.e-technik.uni-dortmund.de]
[snip]
> I'm not sure if I recall this correctly, but did perchance DB offer a
> "no-file" hash mode? If so, that might be far easier, because we depend
> on DB anyways.
Yes, it does. Here is an excerpt from the BerkeleyDB manual:
> In-memory databases never intended to be preserved on disk may be created
> by setting both the file and database arguments to NULL. Note that
in-memory
> databases can only ever be shared by sharing the single database handle
that
> created them, in circumstances where doing so is safe.
This approach could be used to replace Judy if we wanted to do that. I think
BerkeleyDB is portable enough to keep it as a dependency.
Adrian
More information about the bogofilter-dev
mailing list