From: "Bünzli Daniel" <daniel.buenzli@epfl.ch>
To: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Which function is consing?
Date: Wed, 4 Jul 2007 16:45:17 +0200 [thread overview]
Message-ID: <589B2AA7-85F2-459F-B505-39318552D504@epfl.ch> (raw)
In-Reply-To: <1E47C897-547E-4B65-8DB8-46228F438C1A@gmail.com>
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
next prev parent reply other threads:[~2007-07-04 14:45 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-04 10:52 Joel Reymont
2007-07-04 14:12 ` [Caml-list] " Christopher L Conway
2007-07-04 14:29 ` Jon Harrop
2007-07-04 14:29 ` Markus E.L.
2007-07-04 14:24 ` Joel Reymont
2007-07-04 14:45 ` Bünzli Daniel [this message]
2007-07-04 18:19 ` Jon Harrop
2007-07-04 16:05 ` Brian Hurt
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=589B2AA7-85F2-459F-B505-39318552D504@epfl.ch \
--to=daniel.buenzli@epfl.ch \
--cc=caml-list@yquem.inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox