Subject: Re: vgrindefs.db size ?
To: Christos Zoulas <christos@zoulas.com>
From: Jaromír Dolecek <dolecek@ics.muni.cz>
List: tech-userlevel
Date: 01/28/2001 20:24:24
Christos Zoulas wrote:
> In article <200101281625.f0SGPB800833@saruman.ics.muni.cz>,
> Jarommr Dolecek <dolecek@ics.muni.cz> wrote:
>
> The file must have holes.
Maybe when it's built, but install(1) then uses real blocks AFAIK.
Anyway, the problem seems to be in hint cap_mkdb(1) passes to
dbopen(3) for nelem value. It uses 2048 and hash(3) seems to use
accordingly big initial database. When I cut the hint to 12, the
result vgrindefs.db is only approx. 24KB. On the other hand, if I
pass default nelem hint (1 or some other low number), termcap.db
becomes about 70KB bigger. I'm currently testing some code which
tests number of records in input file(s) and passes appropriate
nelem hint.
Jaromir
--
Jaromir Dolecek <jdolecek@NetBSD.org> http://www.ics.muni.cz/~dolecek/
@@@@ Wanna a real operating system ? Go and get NetBSD, dammit! @@@@