caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Fabrice Le Fessant <Fabrice.Le_fessant@inria.fr>
To: "Daniel Bünzli" <daniel.buenzli@erratique.ch>
Cc: Anders Peter Fugmann <anders@fugmann.net>,
	caml-list <caml-list@inria.fr>
Subject: Re: [Caml-list] Speeding up compilation
Date: Wed, 2 Apr 2014 22:43:19 +0200	[thread overview]
Message-ID: <CAHvkLrNyM-gkG+dOpjhktJpgOPP8nsSzRL3Ldr9b36zQzbyX3A@mail.gmail.com> (raw)
In-Reply-To: <9EC7944797D54A8E893837CB84026489@erratique.ch>

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

ocp-build uses a trick to speed-up compilations with camlp4: it
preprocesses every file only once, and then uses the generated file (a
binary version of the file AST) with ocamldep, ocamlc and ocamlopt. It
usually means a x3 speedup.

--Fabrice


On Wed, Apr 2, 2014 at 10:34 PM, Daniel Bünzli
<daniel.buenzli@erratique.ch>wrote:

>
>
> Le mercredi, 2 avril 2014 à 22:14, Anders Peter Fugmann a écrit :
>
> > Is there any way to use a optimized version of camlp4.
>
> Not sure that this will work as it it not mentioned in the documentation
> [1] but did you try to add
>
> camlp4="camlp4.opt"
>
> in .opam/$SWITCH/lib/findlib.conf (or wherever it is on your machine).
>
> Best,
>
> Daniel
>
> [1]
> http://projects.camlcity.org/projects/dl/findlib-1.4.1/doc/ref-html/r775.html
>
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>



-- 
Fabrice LE FESSANT
Chercheur en Informatique
INRIA Paris Rocquencourt -- OCamlPro
Programming Languages and Distributed Systems

[-- Attachment #2: Type: text/html, Size: 2010 bytes --]

  reply	other threads:[~2014-04-02 20:43 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-04-02 20:14 Anders Peter Fugmann
2014-04-02 20:34 ` Daniel Bünzli
2014-04-02 20:43   ` Fabrice Le Fessant [this message]
2014-04-02 20:54     ` Yotam Barnoy
2014-04-03  2:10       ` Francois Berenger
2014-04-02 21:00     ` Anders Peter Fugmann
2014-04-02 20:49   ` Anders Peter Fugmann
2014-04-02 21:09     ` Daniel Bünzli
2014-04-02 21:42   ` Gerd Stolpmann
2014-04-03 21:00     ` Anders Peter Fugmann
2014-04-04 20:55       ` Gerd Stolpmann
2014-04-08 17:32 ` Pietro Abate

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=CAHvkLrNyM-gkG+dOpjhktJpgOPP8nsSzRL3Ldr9b36zQzbyX3A@mail.gmail.com \
    --to=fabrice.le_fessant@inria.fr \
    --cc=anders@fugmann.net \
    --cc=caml-list@inria.fr \
    --cc=daniel.buenzli@erratique.ch \
    /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).