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-19 (13:02)
From: Xavier Leroy <xavier.leroy@i...>
Subject: Re: [Caml-list] O'Caml vs C++: a little benchmark
> the compiler doesn't inline Array.fold_left, and hence not your
> anonymous "fun" either, because it doesn't inline anything between
> compilation units.

Just for the record: ocamlopt does perform inlining across compilation
units (via the information stored in .cmx files).  What it doesn't do,
however, is inlining and specialization of recursive function definitions.  

Two more points before I stop reading this "yet another stupid
micro-benchmark" thread:

* is mandatory reading before
  making any performance claim about OCaml.
* is a (rare) example of a
  non-stupid inter-language performance comparison.

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