From: Chris Yocum <cyocum@gmail.com>
To: Jeremie Dimino <jdimino@janestreet.com>
Cc: "caml-list@inria.fr" <caml-list@inria.fr>
Subject: Re: [Caml-list] Ocaml 4.02.0: Dead Code Elimination and Core
Date: Mon, 1 Sep 2014 17:57:42 +0100 [thread overview]
Message-ID: <20140901165742.GB2893@keiichi> (raw)
In-Reply-To: <CANhEzE7uUuDTdVRC2PVtB21-gtLZxLh_LQPUucdt8LQTFhCr1A@mail.gmail.com>
On Mon, Sep 01, 2014 at 02:14:28PM +0100, Jeremie Dimino wrote:
> Hi Christopher,
>
> On Mon, Sep 1, 2014 at 1:58 PM, Christopher Yocum <cyocum@gmail.com> wrote:
>
> > I saw that there is dead code elimination in 4.02.0 and I thought to
> > myself that this would help make Core's very large binaries smaller. So, I
> > switch compilers and did a test. Unfortunately, a small sample program
> > compiled with ocamlopt and using Core.Std.List was still 11MB. I very much
> > doubt that my binary really needs to be 11MB. Is there a way to shrink the
> > size? I had heard about namesapces elsewhere before but I think that
> > discussion died.
> >
>
> AFAIK 4.02 doesn't do much more dead code elimination than 4.01. There is
> an entry about dead code elimination in the changelog but it is a local
> optimization that is unlikely to change the size of binaries much.
>
> However there is a new feature of 4.02 that will help reduce the size of
> binaries using Core: module aliases. Core will have to be updated to take
> advantage of it. We are hopping to release a new version of Core using
> module aliases soon.
Dear Jeremie,
Thank you very much for this. I look forward to seeing the new
version of Core. BTW, I just saw a blog post about this on the Jane
St. tech blog. I guess I should have done a bit more research before
sending this out.
All the best,
Chris
>
> --
> Jeremie
next prev parent reply other threads:[~2014-09-01 16:57 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-01 12:58 Christopher Yocum
2014-09-01 13:14 ` Jeremie Dimino
2014-09-01 16:57 ` Chris Yocum [this message]
2014-09-04 15:03 ` Goswin von Brederlow
2014-09-05 20:55 ` Jacques Garrigue
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=20140901165742.GB2893@keiichi \
--to=cyocum@gmail.com \
--cc=caml-list@inria.fr \
--cc=jdimino@janestreet.com \
/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