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
Which function is consing?
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Bünzli_Daniel <daniel.buenzli@e...>
Subject: Re: [Caml-list] Which function is consing?
You wrap your call in a higher-order function that compares the  
Gc.stat () before and after your call, see discussion here [1] and  
here [2].

This is only a half solution since it is a very manual one. However  
if you have a hint on where you allocate a lot this may be usefull to  
compare different implementations and their memory usage.