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: Pascal Bourguignon
Subject: Re: make-hash-table :size
Date: 28 Aug 2004 18:03:41 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Kai Grossjohann <kai@emptydomain.de> writes:

> Joost Kremers <joostkremers@yahoo.com> writes:
> 
> > i'm writing a program in emacs that makes rather extensive use of small
> > hash tables, about a dozen elemens or so. i'm going over my code again, to
> > see if i can improve things here and there, and i suddenly realise that
> > MAKE-HASH-TABLE takes a :size argument.
> 
> I wonder if hash tables are really faster than alists in this case.
> Have you tried both?

Well, it seems that yes, non-empty emacs hash tables are faster than
alists...

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

Our enemies are innovative and resourceful, and so are we. They never
stop thinking about new ways to harm our country and our people, and
neither do we.


reply via email to

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