caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Floating point optimization patch for OCaml bytecode
@ 2005-09-15 23:21 Jeffrey Mathews
  2005-09-16 15:17 ` [Caml-list] " Damien Guichard
  0 siblings, 1 reply; 2+ messages in thread
From: Jeffrey Mathews @ 2005-09-15 23:21 UTC (permalink / raw)
  To: caml-list

I know, I know -- why bother optimizing bytecode?  (Compelling reasons
have long been debated -- for me, it's a need to do dynamic- / meta-
programming.)

Anyway, I've written a small patch for the OCaml bytecode compiler and
runtime that significantly improves the performance of a few
floating-point intensive benchmarks (from 30 to 40%) by reducing
boxing and unboxing of intermediate floating point results.

This is still preliminary work, and honestly I'm a little suspicious
that it works so well.  Testing has also been light -- it compiles and
runs my 'benchmark' script when patched against ocaml 3.08.1 and
3.08.4 (as well as MetaOcaml, though the patch needs a little
coaxing).

A short write-up can be found at http://dem.inim.us/ocamlfp/README-FP.html

The patch is found at http://dem.inim.us/ocamlfp/ocamlfp-0.1.diff.gz

I'd greatly appreciate feedback, criticism, testing on other platforms.

Thanks in advance,
Jeff


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-09-16 15:19 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-09-15 23:21 Floating point optimization patch for OCaml bytecode Jeffrey Mathews
2005-09-16 15:17 ` [Caml-list] " Damien Guichard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).