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
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: 2007-05-31 (15:28)
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