Re: pwd_mkdb(8): estimate correct number of hash table elements

2018-09-17 Thread Theo Buehler
On Mon, Sep 17, 2018 at 11:08:04AM -0600, Todd C. Miller wrote: > Since we store each entry 3 times the estimate of the number of > elements needs to be 3x the number of entries. > > Also set the bucket size to be the optimal file system block size > instead of hard-coding to 4096. ok tb

pwd_mkdb(8): estimate correct number of hash table elements

2018-09-17 Thread Todd C. Miller
Since we store each entry 3 times the estimate of the number of elements needs to be 3x the number of entries. Also set the bucket size to be the optimal file system block size instead of hard-coding to 4096. - todd Index: usr.sbin/pwd_mkdb/pwd_mkdb.c