Browse thread
Which function is consing?
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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. Daniel [1] http://caml.inria.fr/pub/ml-archives/caml-list/ 2003/11/34f26b24813463c04244b74a889dc2a3.fr.html [2] http://caml.inria.fr/pub/ml-archives/caml-list/2003/11/ f5ceb88194f4324b692f89b6f3398ff2.fr.html