[comp.lang.c] ndbm again, is it worth for files which may utmost have 100 records

kannan@cerc.wvu.wvnet.edu (R. Kannan) (06/23/89)

Is it worth to use ndbm for files which may utmost contain 100 records.

Thank you.

Are there any comparison statistics between write and read and dbm_store
dbm_fetch for various sizes of files.

This will be very helpful to us.

thank you

meissner@tiktok.dg.com (Michael Meissner) (07/03/89)

In article <160@cerc.wvu.wvnet.edu.edu> kannan@cerc.wvu.wvnet.edu (R. Kannan) writes:
| 
| Is it worth to use ndbm for files which may utmost contain 100 records.

If you are going to have so few records, why not just use an empty
directory, and make each record a separate filename, using some
suitable trasnformation function on the key for the name of the file.
--
Michael Meissner, Data General.
Uucp:		...!mcnc!rti!xyzzy!meissner		If compiles were much
Internet:	meissner@dg-rtp.DG.COM			faster, when would we
Old Internet:	meissner%dg-rtp.DG.COM@relay.cs.net	have time for netnews?