[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] DB_File File Size




4/27/99, matt@exponet.net wrote:
 >Do you know what the $DB_BTREE attribute does, and whether that's portable
 >between UNIX and the MacOS?

>From DB_File.pm:

    -----------------------------
    =item B<DB_BTREE>

    The btree format allows arbitrary key/value pairs to be stored in a
    sorted, balanced binary tree.

    As with the DB_HASH format, it is possible to provide a user defined
    Perl routine to perform the comparison of keys. By default, though, the
    keys are stored in lexical order.
    -----------------------------


Evidently, if one does not ask for a "sorted, balanced binary tree", one
gets an "unsorted, unbalanced, binary behemoth", though perhaps only on the
Mac.

Since DB_FILE is recommended in the Perl Cookbook (p. 492), I'd assume it's
platform independent (apart from certain performance characteristics which
you seem to have encountered).

rkm

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org