From: "Jon Harrop" <jon@ffconsultancy.com>
To: "'Alain Frisch'" <alain@frisch.fr>
Cc: <caml-list@inria.fr>
Subject: RE: [Caml-list] Case study in optimization: porting a compiler from OCaml to F#
Date: Wed, 13 Mar 2013 19:44:08 -0000 [thread overview]
Message-ID: <010f01ce2023$217baaa0$6472ffe0$@ffconsultancy.com> (raw)
In-Reply-To: <5140BD88.7090905@frisch.fr>
Alain Frisch wrote:
> Too bad, because the really interesting part would to know (i) what kind
of
> optimizations you had to do on the F# version (and in particular whether
> they make us of parallelism),
* Replaced the use of exceptions for control flow with variant types.
* Replaced use of fprintf with lower-level .NET functions.
* Parallelized some of the symbolic code.
* Algorithmic optimization to a search function.
> (ii) whether (some of) those optimizations could be applicable to the
OCaml
> version as well, and
* No need to replace exceptions in OCaml.
* No need to replace printf and friends in OCaml.
* Could try to parallelize the OCaml but it would be hard to do efficiently.
* Algorithmic optimization could also be done to the OCaml (IIRC, this was a
fairly minor speedup).
> (iii) how much effort you initially put into optimizing the OCaml version
(just
> tweaking the GC parameters can easily give very substantial speedups for
> symbolic processing).
None. I didn't change the OCaml code at all and didn't try different GC
parameters. However, it had already been quite heavily optimized.
Cheers,
Jon.
next prev parent reply other threads:[~2013-03-13 19:44 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-13 17:04 Jon Harrop
2013-03-13 17:14 ` julien verlaguet
2013-03-13 19:19 ` Jon Harrop
2013-03-13 19:28 ` oliver
2013-03-14 15:05 ` oliver
2013-03-14 15:15 ` oliver
2013-03-15 13:34 ` Pierre-Alexandre Voye
2013-03-17 12:06 ` Jon Harrop
2013-03-19 1:50 ` Francois Berenger
2013-03-20 20:54 ` Jon Harrop
2013-03-20 22:35 ` Roberto Di Cosmo
2013-03-21 4:13 ` Mike Lin
2013-03-21 7:35 ` Roberto Di Cosmo
2013-03-21 20:07 ` Roberto Di Cosmo
2013-03-19 12:47 ` Jean-Marc Alliot
2013-03-20 9:32 ` Roberto Di Cosmo
2013-03-19 1:37 ` Francois Berenger
2013-03-13 17:55 ` Alain Frisch
2013-03-13 19:44 ` Jon Harrop [this message]
2013-03-13 21:02 ` Alain Frisch
2013-03-13 18:27 ` oliver
2013-03-13 20:00 ` Jon Harrop
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='010f01ce2023$217baaa0$6472ffe0$@ffconsultancy.com' \
--to=jon@ffconsultancy.com \
--cc=alain@frisch.fr \
--cc=caml-list@inria.fr \
/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