Browse thread
Question on performance/style issue
[
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: | 2006-03-01 (08:35) |
From: | Alessandro Baretta <a.baretta@s...> |
Subject: | Re: [Caml-list] Question on performance/style issue |
Nathaniel Gray wrote: > On 2/24/06, Alessandro Baretta <a.baretta@studio.baretta.com> wrote: > >> x ++ f ++ g ++ h >> >>What is the impact of the this programming style on execution performance? > > > Looks bad: ... > > So no, it looks like the call to ++ isn't compiled away, at least in > this case. I also tried with -inline 99 and it didn't help, but I > don't know if that's even a valid value for inline. Ah, I thought so much. Yet, I also think I remember that ocaml(c/opt) does reduce some kinds of expressions before code generation. Or am I out in the blue? Alex -- ********************************************************************* Ing. Alessandro Baretta Studio Baretta http://studio.baretta.com/ Consulenza Tecnologica e Ingegneria Industriale Technological Consulting and Industrial Engineering tel. +39 02 370 111 55 fax. +39 02 370 111 54