Version française
Home     About     Download     Resources     Contact us    
Browse thread
[Caml-list] OT: Java Performance
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Chet Murthy <chet@w...>
Subject: Re: [Caml-list] comparison with C performance

Hmmm .. Lex, are you aware of Ensemble?

Mark Hayden basically proved that if you properly manage memory and a
few other things, well, you can be faster than C, unless the C program
is (ahem) trivial.

some more details: Mark showed that for a rather complicated network
protocol stack, a CAML implementation was a *lot* faster than a
highly-optimized C implementation.

The key things he was able to do were:

  (a) since its in ML, you can be a lot more aggressive about
  optimization

  (b) effective memory-management of buffers in ML -- don't just leave
  it to the GC

  (c) serious reliance on the inliner

There were a few other things, but this is a good start.

Cheers,
--chet--

-------------------
To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr
Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners