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: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Comparison of OCaml and MLton for numerics
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.

-- 
Dr Jon D Harrop, Flying Frog Consultancy Ltd.
OCaml for Scientists
http://www.ffconsultancy.com/products/ocaml_for_scientists/?e