Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: DBM Portability?

by derby (Abbot)
on Oct 03, 2002 at 12:41 UTC ( #202492=note: print w/replies, xml ) Need Help??

in reply to DBM Portability?

The Cookbook has a nice overview of the different DBM implementations and their features (p90). Here's the table

Linkage comes with Perlyesyesyesyes
Source bundled with Perlnoyesnono
Source redistributablenoyesgplyes
Easy to buildN/Ayesyesok
Often comes with Unixyesnonono
Builds ok on UnixN/Ayesyesyes
Builds ok on WindowsN/Ayesyesyes
Code sizedependssmallbigbig
Disk Usage dependssmallbigok
Speed dependsslowokfast
Block Size Limits 4K1Knonenone
Byte order independentnononoyes
User-defined sort order nononoyes
Partial key lookups nononoyes

There are other caveats and info so check out chapter 14 of the Cookbook.


Replies are listed 'Best First'.
Re: Re: DBM Portability?
by perrin (Chancellor) on Oct 03, 2002 at 16:37 UTC
    This is actually totally wrong about the relative speeds. SDBM is the fastest by a mile. There are benchmarks in the readme for MLDBM::Sync.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://202492]
[Corion]: GrandFather: Yeah, in that aspect, hardware is far more a black box than software
[GrandFather]: Oh, and the manufacturer tells lies too! I'm sure they don't mean to, but I know for sure some of the stuff they say is just wrong. It's possible they don't understand what we are asking, but that's not a good look either
[Corion]: GrandFather: Ah, unit testing hardware is fun, especially when the hardware is uncalibrated ...
[GrandFather]: Us: "What scaling do we need to apply to the numbers from the SDK for the wibble?". Them: "Oh, the numbers from the SDK for the wibble are already correct, they don't need scaling"
[GrandFather]: In our code: wibble range 1 scale by 1, range 2 scale by 2, range 3 scale by 4, range 4 scale by 8

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2017-08-24 07:17 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (365 votes). Check out past polls.