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
[Caml-list] O'Caml vs C++: a little benchmark
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2002-08-28 (14:34)
From: Alain Frisch <frisch@c...>
Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark
On Wed, 28 Aug 2002, John Max Skaller wrote:

> [There's nothing to gain from
> a simple inlining, unless the loop is only executed
> once or twice - you'd only save a single function call]

Why ?  You can unroll the call to the function in its own body, up to a
fixed depth n and divide the number of function calls by n (and allow
subsequent optimizations, such as boxing/unboxing removal).

-- Alain

To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: