English version
Accueil     À propos     Téléchargement     Ressources     Contactez-nous    

Ce site est rarement mis à jour. Pour les informations les plus récentes, rendez-vous sur le nouveau site OCaml à l'adresse ocaml.org.

Browse thread
Ocaml compiler features
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-01-14 (18:31)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Ocaml compiler features
On Sunday 14 January 2007 18:21, Edgar Friendly wrote:
> Yes to the first sentence, I think no on the second.  Map and Hashtbl
> are very good, but I think I really want an array.  For an ('a, 'b) Map,
> this is for situations where the set of 'a is fixed at design time, I
> don't see the overhead of Maps and Hashtbls being appropriate.  Atomic
> variants already have unique ids from 0 to n-1, so they seem quite
> appropriate for this kind of task.

You should at least measure the overhead of using a hash table before trying 
to address the overhead...

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
Objective CAML for Scientists