in reply to BerkeleyDB performance tuning using perl API

The most important one I know about is CacheSize. A recent change to Geo::PostalCode started setting this to the size of the DB, effectively caching the entire file. The speedup was impressive. Also, if you're using the tied interface you can get a nice bump by switching to OO - tie has a significant overhead in Perl.

-sam

  • Comment on Re: BerkeleyDB performance tuning using perl API

Replies are listed 'Best First'.
Re^2: BerkeleyDB performance tuning using perl API
by tbusch (Sexton) on Jul 28, 2006 at 16:18 UTC
    I had a look at Geo::PostalCode. Unfortunately they use the old Berkeley DB API called DB_File rather than BerkeleyDB. Do you know how to set the CacheSize with the new API ? It's not mentionned in the doc.
      tbusch,
      It's not mentionned in the doc.

      What docs are you reading? From the synopsis in TFM, [ -CacheSize    => $number, ]

      Cheers - L~R