Browse thread
Comparison of OCaml and MLton for numerics
- Yuanchen Zhu
[
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: | Markus Mottl <markus.mottl@g...> |
| Subject: | Re: [Caml-list] Comparison of OCaml and MLton for numerics |
On 6/1/07, Brian Hurt <bhurt@janestcapital.com> 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. Regards, Markus -- Markus Mottl http://www.ocaml.info markus.mottl@gmail.com