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
Comparison of OCaml and MLton for numerics
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2007-06-01 (16:25)
From: Markus Mottl <markus.mottl@g...>
Subject: Re: [Caml-list] Comparison of OCaml and MLton for numerics
On 6/1/07, Brian Hurt <> wrote:
> But that was my point- if the only thing you're
> getting out of inlining a function is skipping a function call (to a known
> location), then inlining generally isn't worth it- it's only worth it if it
> opens up other possibilities.

I disagree.  Function calls can be pretty darn expensive.  If you have
a function that does not much more than branch on some value (many
branches, the first discriminated cases being taken more often than
others), then the function call alone may costs more than the
operation in average, but inlining would still lead to a lot of text
being duplicated.


Markus Mottl