caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: "Markus E.L." <ls-ocaml-developer-2006@m-e-leypold.de>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Which function is consing?
Date: Wed, 4 Jul 2007 15:24:15 +0100	[thread overview]
Message-ID: <1E47C897-547E-4B65-8DB8-46228F438C1A@gmail.com> (raw)
In-Reply-To: <oxy7hws0ma.fsf@hod.lan.m-e-leypold.de>

What I would like to find out is how much memory each function  
allocates. I would like to minimize memory allocations as they put  
pressure on the garbage collector.

This type of info is reported for Lisp functions, for example.

	Thanks, Joel

On Jul 4, 2007, at 3:29 PM, Markus E.L. wrote:

> I'm not sure I understand what you mean -- but if you're looking for
> the function call(s) generated when a::as is compiled: There is no
> such function AFAIK: :: is a constructor (like 'Some') not a
> function (like (+)) and the construction process is completely  
> inlined (using
> ocaml -dinstr I see a makeblock in this instances, I assume that's
> it).
>
--
http://topdog.cc      - EasyLanguage to C# compiler
http://wagerlabs.com  - Blog






  reply	other threads:[~2007-07-04 14:24 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 [this message]
2007-07-04 14:45     ` Bünzli Daniel
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=1E47C897-547E-4B65-8DB8-46228F438C1A@gmail.com \
    --to=joelr1@gmail.com \
    --cc=caml-list@yquem.inria.fr \
    --cc=ls-ocaml-developer-2006@m-e-leypold.de \
    /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;
as well as URLs for NNTP newsgroup(s).