Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
Execution time of class versus record
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-24 (15:35)
From: Jon Harrop <jon@f...>
Subject: Re: [Caml-list] Execution time of class versus record
On Sunday 24 June 2007 16:14:54 wrote:
> Hello,
> I've tried to implement two equivalent small programs, the one using
> class, the other one using records. The resulting execution times says
> that class are 7-8 times slower than record (compiled with ocamlopt in a
> Intel machine).
> Please, knows someone what I'm doing wrong?

You aren't doing anything wrong.

Dr Jon D Harrop, Flying Frog Consultancy Ltd.
The OCaml Journal