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

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

Re: make-hash-table :size


From: Joost Kremers
Subject: Re: make-hash-table :size
Date: 23 Aug 2004 21:00:40 GMT
User-agent: slrn/0.9.8.0 (Linux)

Stefan Monnier wrote:
>> so i start wondering, will i gain anything by defining my hash tables with
>> (make-hash-table :size 15)? does it save memory, will it speed things up?
>
> It might do both.  But as always, this is strongly dependent on what your
> code does, so you'll have to measure it yourself.
>
> The expectation is that specifying a (mostly correct) size should only make
> things better.  If it makes things worse, then it might be considered as
> a bug.

ok, thanks for the info. i'll just put it in, then, and if i see some
terrible degradation in performance, i'll know what first to try...

-- 
Joost Kremers                                      joostkremers@yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)


reply via email to

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