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: Stefan Monnier
Subject: Re: make-hash-table :size
Date: Mon, 23 Aug 2004 20:45:21 GMT
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> 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.


        Stefan


reply via email to

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