Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Multi-Minute Startup?
- X-seq: zsh-users 13138
- From: Dan Nelson <dnelson@xxxxxxxxxxxxxxx>
- To: Richard Hartmann <richih.mailinglist@xxxxxxxxx>
- Subject: Re: Multi-Minute Startup?
- Date: Thu, 14 Aug 2008 09:42:51 -0500
- Cc: Aaron Davies <aaron.davies@xxxxxxxxx>, "Benjamin R. Haskell" <zsh@xxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxxxxx>
- In-reply-to: <2d460de70808140608t7cc8ca48v4117feb57c97ca3b@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <alpine.LNX.1.10.0808070327310.26055@xxxxxxxxxxxxxxxxxxxxx> <c4e763ac0808070152k2846913dn4b637fe9ea275ef2@xxxxxxxxxxxxxx> <alpine.LNX.1.10.0808070509320.26055@xxxxxxxxxxxxxxxxxxxxx> <c4e763ac0808071832j6f7393fay158c7a2485ca41c9@xxxxxxxxxxxxxx> <20080808025823.GB68181@xxxxxxxxxxxxxxxx> <c4e763ac0808072340l398c5209o1cd6ccd77ec08a7f@xxxxxxxxxxxxxx> <alpine.LNX.1.10.0808081201180.26055@xxxxxxxxxxxxxxxxxxxxx> <c4e763ac0808110248g7dedabb9kbe6af57fcb0b8d68@xxxxxxxxxxxxxx> <20080811152909.GA61872@xxxxxxxxxxxxxxxx> <2d460de70808140608t7cc8ca48v4117feb57c97ca3b@xxxxxxxxxxxxxx>
In the last episode (Aug 14), Richard Hartmann said:
> On Mon, Aug 11, 2008 at 17:29, Dan Nelson <dnelson@xxxxxxxxxxxxxxx> wrote:
>
> > Raise suggested-size to 1601 (a prime number larger than your current
> > list size with some room to grow).
>
> Using a prime hints at an interesting reason. What is it?
I just copied the recommendation out of the nscd.conf manpage:
suggested-size service prime-number
This option sets the size of the hash that is used to
store the cache entries. As this is a hash, it should be
reasonably larger than the maximum number of entries that
is expected to be cached simultaneously and should be a
prime number. It defaults to a size of 211 entries.
--
Dan Nelson
dnelson@xxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author