Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Jianzhou Zhao <jianzhou@seas.upenn.edu>
To: caml users <caml-list@inria.fr>
Subject: [Caml-list] What is the default hash function of string in 3.12?
Date: Tue, 12 Jun 2012 16:23:46 -0400	[thread overview]
Message-ID: <CALhoTJNkkGOM-sR0=O3Z7wHqKM8B9JHsjLr+jWZ8Hjejbg2iow@mail.gmail.com> (raw)

Hi,

I have a table (with size > 30000) implemented by both Hashtbl and
Map. I found their performance are almost the same. But I think
Hashtbl should be much faster than Map. So, I was wondering what hash
function of String OCaml 3.12 uses, and if I can define my own.

Thanks!
-- 
Jianzhou

             reply	other threads:[~2012-06-12 20:24 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 20:23 Jianzhou Zhao [this message]
2012-06-13  8:25 ` rixed

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='CALhoTJNkkGOM-sR0=O3Z7wHqKM8B9JHsjLr+jWZ8Hjejbg2iow@mail.gmail.com' \
    --to=jianzhou@seas.upenn.edu \
    --cc=caml-list@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