help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Qs on obarrays


From: Stefan Monnier
Subject: Re: Qs on obarrays
Date: Wed, 12 Oct 2005 11:53:22 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux)

> Also, the obarray length must be supplied to make-vector. Anyone know a
> heuristic for a good vector length to use when you expect a certain number
> of symbols? I notice that the length of standard variable `obarray's value
> is 1511 (prime, presumably). If I expect on the order of N symbols, what is
> a good length to use? Or is there no simple formula? If not, anyone know a
> good length for, say, 100 symbols?

In most cases, you can advantageously use a hashtable instead of an obarray.
Those are automatically resized.


        Stefan


reply via email to

[Prev in Thread] Current Thread [Next in Thread]