Version française
Home     About     Download     Resources     Contact us    
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: -- (:)
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                                   | hdaume@isi.edu
 "Arrest this man, he talks in maths."           | www.isi.edu/~hdaume