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
Funny effect computation time
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2005-12-18 (15:03)
From: malc <malc@p...>
Subject: Re: [Caml-list] Funny effect computation time
On Sun, 18 Dec 2005, Andries Hekstra wrote:

> Dear OCaml-list,
> I would like to thank several people of the ocaml list for constructive
> comments to the LDPC decoder program I posted earlier. I attached the
> revised Main.ml to this email.
> I noticed that when compiling Main.ml with -inline 100 -noassert -unsafe
> on a Pentium M, and I removing the unused argument messageCheckNodeOut of
> the function processCheckNode (resulting in Main2.ml), the computation
> time increases ca. 1.5-fold. I wonder whether this has to do with
> (un)boxing?

It's hard to say why OCaml somtimes produces the code the way it does,
it's even harder to predict how it will be intrepreted by different
"modern" CPUs. Here's a list of potentially useful links.