in reply to Re: I need speed...
in thread I need speed...

A good suggestion; but I'd be careful about which DBM module actually gets used, because most of them have pretty limiting restrictions. SDBM f.ex, the only DBM module that ships with Perl/Win32, can only store a very small number of keys, making it next to useless for anything beyond persistent configuration information or such.

Replies are listed 'Best First'.
Re: Re: Re: I need speed...
by blakem (Monsignor) on Oct 07, 2001 at 13:40 UTC
    Good point. I've always found BerkeleyDB to be more than sufficient for anything like this. I'd recommend it over most of the other dbmish inplementations.

    -Blake

      BerkeleyDB is good if you can use the BerkeleyDB module with it's advanced locking interface, but for most things with short keys and short values SDBM_File is much faster, not to mention much easier to use. This application looks like an ideal fit for it.
        He mentioned potentially hundreds of thousands of cached IDs.