Version française
Home     About     Download     Resources     Contact us    
Browse thread
Comparison of OCaml and MLton for numerics
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Christophe Raffalli <Christophe.Raffalli@u...>
Subject: Re: [Caml-list] Comparison of OCaml and MLton for numerics
Jon Harrop a écrit :
> On Thursday 31 May 2007 16:15:50 Christophe Raffalli wrote:
>   
>> Either use array of records (you will have one box), one array of double
>> size or two separate arrays (no boxing at all).
>>     
>
> That would be good advice were kx and ky both floats but, alas, one is not. So 
> using a record doesn't buy you anything (only all-float records are unboxed) 
> and you cannot use a double length array. I tried two arrays and it was 
> significantly faster.
>
>   
Oh, I did not see that kx was an int ... So two records in the only 
solution (and it is also preferable for MLTon as I imagine that
array of tuple are not optimized ...)

Christophe Raffalli