unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* make-hash-table :size
@ 2004-08-23 20:36 Joost Kremers
  2004-08-23 20:45 ` Stefan Monnier
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Joost Kremers @ 2004-08-23 20:36 UTC (permalink / raw)


hi all,

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.

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?
or is it really moot whether i specify a size of 15 or let emacs just use
the default size of 65? i've tried to find some discussion of this issue on
the net, but google didn't reveal much.

TIA

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2004-08-30  1:25 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-23 20:36 make-hash-table :size Joost Kremers
2004-08-23 20:45 ` Stefan Monnier
2004-08-23 21:00   ` Joost Kremers
2004-08-28 14:07 ` Kai Grossjohann
     [not found] ` <mailman.506.1093702372.1998.help-gnu-emacs@gnu.org>
2004-08-28 16:03   ` Pascal Bourguignon
2004-08-29 10:11     ` Oliver Scholz
2004-08-29 11:59       ` Pascal Bourguignon
2004-08-29 21:10         ` Oliver Scholz
2004-08-29 21:44           ` Oliver Scholz
2004-08-29 21:48             ` Oliver Scholz
2004-08-30  1:25               ` Pascal Bourguignon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).