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
How to write efficient threaded programs on OCaml
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2006-02-08 (16:55)
From: Matthieu Dubuget <matthieu.dubuget@l...>
Subject: Re: [Caml-list] How to write efficient threaded programs on OCaml
Xavier Leroy a écrit :
>> My question is twofold.  When using the Event module in the same way
>> MLton does, the running time is ~30 times larger.  
I did this rewrite, mimicing MLton's version, and asked for improvements
on this list some times ago:

The attached code seems not retrievable from Caml-list official
archives. It's here:

>> I'd like an
>> explanation about why there is such a huge difference and possible
>> ways to reduce it...  Using an implementation close to C (Mutex,
>> Condition) divides the time by 2 but still is about 6 times slower
>> than C.  Is it to say a better implementation is possible for OCaml ???
> Could you please tell us where to find the OCaml code you're
> discussing?  I haven't seen it anywhere on the Web page you posted.