From: "Damien Guichard" <alphablock@wanadoo.fr>
To: "Jeffrey Mathews" <jnamathews@acm.org>, <caml-list@inria.fr>
Subject: Re: [Caml-list] Floating point optimization patch for OCaml bytecode
Date: Fri, 16 Sep 2005 17:17:04 +0200 [thread overview]
Message-ID: <000501c5bad1$ce1c0080$a1130c50@oemcomputer> (raw)
In-Reply-To: <305c47f0509151621621a630d@mail.gmail.com>
Thanks Jeffrey.
When OCaml is used as a scripting language (think animation-scripting) it
has to compete with popular scripting language such as Perl, Python, Ruby.
For many people the choice is a tradeoff between language facilities and
implementation performance.
So, yes, bytecode performance matters.
- damien
----- Original Message -----
From: "Jeffrey Mathews" <jnamathews@acm.org>
To: <caml-list@inria.fr>
Sent: Friday, September 16, 2005 1:21 AM
Subject: [Caml-list] Floating point optimization patch for OCaml bytecode
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
_______________________________________________
Caml-list mailing list. Subscription management:
http://yquem.inria.fr/cgi-bin/mailman/listinfo/caml-list
Archives: http://caml.inria.fr
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs
prev parent reply other threads:[~2005-09-16 15:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 23:21 Jeffrey Mathews
2005-09-16 15:17 ` Damien Guichard [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='000501c5bad1$ce1c0080$a1130c50@oemcomputer' \
--to=alphablock@wanadoo.fr \
--cc=caml-list@inria.fr \
--cc=jnamathews@acm.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).