From: Erik de Castro Lopo <ocaml-erikd@mega-nerd.com>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Hashtbl.create 401
Date: Fri, 22 Apr 2005 13:21:31 +1000 [thread overview]
Message-ID: <20050422132131.6ff2fbee.ocaml-erikd@mega-nerd.com> (raw)
In-Reply-To: <42686ADE.1040406@havenrock.com>
On Thu, 21 Apr 2005 21:09:18 -0600
Matt Gushee <mgushee@havenrock.com> wrote:
> Hello, all--
>
> While browsing through the Labltk source code (and perhaps in some other
> places), I noticed several instances of:
>
> Hashtbl.create 401
>
> Why 401?
Hash tables distribute data across a set of hash buckets. If
the number of hash buckets is prime (401 is prime) then their
is a better chance of the data being evenly distributed across
the buckets.
Erik
--
+-----------------------------------------------------------+
Erik de Castro Lopo nospam@mega-nerd.com (Yes it's valid)
+-----------------------------------------------------------+
"I invented the term Object-Oriented, and I can tell you I
did not have C++ in mind." -- Alan Kay
next prev parent reply other threads:[~2005-04-22 6:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-22 3:09 Matt Gushee
2005-04-22 3:21 ` Erik de Castro Lopo [this message]
2005-04-22 12:06 ` [Caml-list] " padiolea
2005-04-23 0:26 ` sejourne_kevin
2005-04-22 3:33 ` Radu Grigore
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050422132131.6ff2fbee.ocaml-erikd@mega-nerd.com \
--to=ocaml-erikd@mega-nerd.com \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox