Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
generic data type -> int function
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-03-31 (18:05)
From: Hal Daume III <hdaume@I...>
Subject: Re: [Caml-list] generic data type -> int function
On Thu, 31 Mar 2005, Richard Jones wrote:

> On Thu, Mar 31, 2005 at 06:33:12AM -0800, Hal Daume III wrote:
> > I want to use complex data types as indices in arrays, essentially.
> How about using Hashtbl or Map with the key being the complex data
> type?  Of course it won't be as fast an integer index into an Array,
> but it might be easier to understand.

Way way way too slow.  As it is, using arrays, my program takes about 5 
hours to run.  A first version using a Hashtbl took well over two days.

 Hal Daume III                                   |
 "Arrest this man, he talks in maths."           |