caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Joel Reymont <joelr1@gmail.com>
To: caml-list <caml-list@inria.fr>
Subject: [Caml-list] [PATCH] tremendously speeding up oasis builds with many executables
Date: Fri, 27 May 2011 09:27:27 +0200	[thread overview]
Message-ID: <95CA84D2-5086-4459-B987-4C1DF825AE41@gmail.com> (raw)

Apply this patch to Oasis 0.2.0 to tremendously speed up builds with many executables 

https://gist.github.com/994781

This will only work if your executable name matches your main, e.g.

Executable foo
	MainIs: foo.ml

The patch makes Oasis 0.2.0 pass all such executables on the command line to ocamlbuild. This way ocamlbuild will be invoked once with all targets, rather than individually invoked for every executable. 

This avoids building the dependency graph on every invocation of ocamlbuild. It also avoids manually reading and comparing binaries before copying them after ocamlbuild is done, e.g. the patch will skip the final copy from foo.{byte,native} to foo.

Enjoy!

--------------------------------------------------------------------------
- for hire: mac osx device driver ninja, kernel extensions and usb drivers
---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont
---------------------+------------+---------------------------------------





             reply	other threads:[~2011-05-27  7:27 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-27  7:27 Joel Reymont [this message]
2011-05-27  7:53 ` [Caml-list] " Joel Reymont
2011-05-27 23:30   ` Sylvain Le Gall

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=95CA84D2-5086-4459-B987-4C1DF825AE41@gmail.com \
    --to=joelr1@gmail.com \
    --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;
as well as URLs for NNTP newsgroup(s).