From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Pascal Bourguignon Newsgroups: gmane.emacs.help Subject: Re: make-hash-table :size Date: 28 Aug 2004 18:03:41 +0200 Organization: [posted via Easynet Spain] Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <87pt5bqmg2.fsf@thalassa.informatimago.com> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1093709211 18686 80.91.224.253 (28 Aug 2004 16:06:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 28 Aug 2004 16:06:51 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Aug 28 18:06:38 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C15iw-0005tA-00 for ; Sat, 28 Aug 2004 18:06:38 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C15nf-0004rV-95 for geh-help-gnu-emacs@m.gmane.org; Sat, 28 Aug 2004 12:11:31 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!feed.news.tiscali.de!easynet-monga!easynet.net!easynet-post2!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Original-Lines: 21 Original-NNTP-Posting-Host: 62.93.174.79 Original-X-Trace: DXC=bU3nP;_dVZeQgW3350b0eciZdW>mQFP3fbBd4DjF1d]a Original-Xref: shelby.stanford.edu gnu.emacs.help:125001 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:20351 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:20351 Kai Grossjohann writes: > Joost Kremers 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.