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
[Caml-list] Slow GC problem
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2003-04-11 (16:35)
From: Shivkumar Chandrasekaran <shiv@e...>
Subject: Re: [Caml-list] Slow GC problem
Hmmm. I thought I had posted the profile and the reason why it was not 
useful. But apparently that email went to /dev/null. I will post it 
again as soon as I have a chance.

The in-core and out-of-core solver are "identical" and all 
floating-point operations are done by BLAS/LAPACK. So I don't think 
ocaml compiler optimizations are an issue.


On Friday, April 11, 2003, at 12:58  AM, Christophe Raffalli wrote:

> Chris Hecker wrote:
>>> What if I modified bigarray_stubs.c to use the malloc and free calls 
>>> of the Boehm gc (6.1-4) garbage collector? My reasoning is that 
>>> malloc is performing poorly due to fragmentation, and switching to a 
>>> gc'd version might help out.
>>> Before I try this I would like some feedback from the list on the 
>>> soundness of this idea.
>> I don't mean to be a nag, but did you profile your application yet?  
>> A very wise programmer once said, "Assume Nothing".
>> Chris
> Always remember that if you do anything preventing the compiler to use 
> float optimizations, you will pay sometimes a 10 factor in speed and 
> there may be other reasons (may be your second algorithm is really 
> more efficient because you were more clever than you expected ?).
> GC problem are in fact not so common. So "Assume Nothing" because I 
> suspect you are wrong ...
> -- 
> Christophe Raffalli
> Université de Savoie
> Batiment Le Chablais, bureau 21
> 73376 Le Bourget-du-Lac Cedex
> tél: (33) 4 79 75 81 03
> fax: (33) 4 79 75 87 42
> mail:
> www:
> ---------------------------------------------
> IMPORTANT: this mail is signed using PGP/MIME
> At least Enigmail/Mozilla, mutt or evolution
> can check this signature
> ---------------------------------------------
> <mime-attachment>
To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: