From: Goswin von Brederlow <goswin-v-b@web.de>
To: caml-list@inria.fr
Subject: Re: [Caml-list] is there a runtime cost for this
Date: Tue, 4 Feb 2014 11:20:33 +0100 [thread overview]
Message-ID: <20140204102033.GA16281@frosties> (raw)
In-Reply-To: <52F0455E.5040806@riken.jp>
On Tue, Feb 04, 2014 at 10:41:50AM +0900, Francois Berenger wrote:
> Hello,
>
> In a .ml file I'd like to write something like this
> in order to factorize some code:
>
> let f x y z = [...] some code [...]
>
> module Something = struct
> let g = f
> end
>
> module Something_else = struct
> let h = f
> end
>
> Is calling Something.g or Something_else.h as efficient
> as calling f directly?
I would expect this to result in identical code. But you know, you
could just compile both versions, objdump -d and compare the two
results.
MfG
Goswin
next prev parent reply other threads:[~2014-02-04 10:20 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-04 1:41 Francois Berenger
2014-02-04 10:20 ` Goswin von Brederlow [this message]
2014-02-04 12:33 ` Gerd Stolpmann
2014-02-04 16:53 ` rixed
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=20140204102033.GA16281@frosties \
--to=goswin-v-b@web.de \
--cc=caml-list@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